summaryrefslogtreecommitdiffstats
path: root/ansible/roles/configure_rabbitmq/templates
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-11-01 11:04:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-01 11:04:16 +0000
commit7d4c4b6d08209b8365854c28f5e4e8e53c6a5a6c (patch)
tree7d39979f0bb19a8d0a10bf31a1f5bf0341175cf3 /ansible/roles/configure_rabbitmq/templates
parent5b77ebed3fd8b4a86a726feedcc3fc42e8855fdb (diff)
parentedbe5db41636fbf5d7007da77e73c26d79edc36b (diff)
Merge changes Ia8783de8,I61421095 into stable/gambia
* changes: Update: Trex KPI not collected no rabbitmq user Trex KPI are not collected due to rabbitmq user
Diffstat (limited to 'ansible/roles/configure_rabbitmq/templates')
-rw-r--r--ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j25
-rw-r--r--ansible/roles/configure_rabbitmq/templates/user_definitions.json.j223
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..7c811f16d
--- /dev/null
+++ b/ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2
@@ -0,0 +1,23 @@
+ {
+ "users": [{
+ "name": "yardstick",
+ "password_hash": "XHp9fBOE3vjTEf7ktiUBHqefW2g=",
+ "hashing_algorithm": "rabbit_password_hashing_sha256",
+ "tags": ""
+ }],
+ "vhosts": [{
+ "name": "/"
+ }],
+ "permissions": [{
+ "user": "yardstick",
+ "vhost": "/",
+ "configure": ".*",
+ "write": ".*",
+ "read": ".*"
+ }],
+ "parameters": [],
+ "policies": [],
+ "queues": [],
+ "exchanges": [],
+ "bindings": []
+}