aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-05-17 00:55:24 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-17 00:55:24 +0000
commit5f961ed04df5164bfc6d8676d78608d011caf9b6 (patch)
tree92792dde6de7e185fffd400f819c48cdb078f4ba /deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2
parentdcd27eccda9c29a8ce9b3c2804f831317d9ea066 (diff)
parent31bc52f98aa708b03b9c4e2919fcb0b4d3c576a9 (diff)
Merge "Add Mitaka package for Ubuntu 14.04"
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2')
-rw-r--r--deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j220
1 files changed, 20 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2 b/deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2
new file mode 100644
index 00000000..4fd873e9
--- /dev/null
+++ b/deploy/adapters/ansible/openstack_mitaka/aodh/templates/policy.json.j2
@@ -0,0 +1,20 @@
+{
+ "context_is_admin": "role:admin",
+ "segregation": "rule:context_is_admin",
+ "admin_or_owner": "rule:context_is_admin or project_id:%(project_id)s",
+ "default": "rule:admin_or_owner",
+
+ "telemetry:get_alarm": "rule:admin_or_owner",
+ "telemetry:get_alarms": "rule:admin_or_owner",
+ "telemetry:query_alarm": "rule:admin_or_owner",
+
+ "telemetry:create_alarm": "",
+ "telemetry:change_alarm": "rule:admin_or_owner",
+ "telemetry:delete_alarm": "rule:admin_or_owner",
+
+ "telemetry:get_alarm_state": "rule:admin_or_owner",
+ "telemetry:change_alarm_state": "rule:admin_or_owner",
+
+ "telemetry:alarm_history": "rule:admin_or_owner",
+ "telemetry:query_alarm_history": "rule:admin_or_owner"
+}