diff options
author | Abhijit Sinha <abhijit.sinha@intel.com> | 2018-10-30 15:15:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-30 15:15:54 +0000 |
commit | 3f1998305fec2261729260fd1954cf6fea9fc9e0 (patch) | |
tree | 1e3e33948f71ad57ac26d9df8dd9035017d82be3 /ansible/roles/configure_rabbitmq/templates | |
parent | e17ba5d730878ae2a92cc9130e47630cc6745d91 (diff) | |
parent | ce809669d3051524508edf5a3d69e83dde8a9080 (diff) |
Merge "Trex KPI are not collected due to rabbitmq user" into stable/gambia
Diffstat (limited to 'ansible/roles/configure_rabbitmq/templates')
-rw-r--r-- | ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j2 | 5 | ||||
-rw-r--r-- | ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2 | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j2 b/ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j2 new file mode 100644 index 000000000..8f07edf5c --- /dev/null +++ b/ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j2 @@ -0,0 +1,5 @@ + [
+ {rabbitmq_management, [
+ {load_definitions, "/etc/rabbitmq/definitions.json"}
+ ]}
+].
\ No newline at end of file diff --git a/ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2 b/ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2 new file mode 100644 index 000000000..831675ff1 --- /dev/null +++ b/ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2 @@ -0,0 +1,23 @@ + {
+ "users": [{
+ "name": "yardstick",
+ "password_hash": "{{ }}",
+ "hashing_algorithm": "rabbit_password_hashing_sha256",
+ "tags": ""
+ }],
+ "vhosts": [{
+ "name": "/"
+ }],
+ "permissions": [{
+ "user": "yardstick",
+ "vhost": "/",
+ "configure": ".*",
+ "write": ".*",
+ "read": ".*"
+ }],
+ "parameters": [],
+ "policies": [],
+ "queues": [],
+ "exchanges": [],
+ "bindings": []
+}
|