From d06e6da19db545dfcc6fdfdc706b9cccdb75c498 Mon Sep 17 00:00:00 2001 From: Stepan Andrushko Date: Thu, 18 Oct 2018 21:16:09 +0300 Subject: Trex KPI are not collected due to rabbitmq user Changed the way rabbitmq-server user is created. Fix is needed to collect KPIs from Trex. JIRA: YARDSTICK-1479 Change-Id: I54369535fdb7af6af76de30f758227736f83db78 Signed-off-by: Stepan Andrushko --- .../templates/rabbitmq.config.j2 | 5 +++++ .../templates/user_definitions.json.j2 | 23 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ansible/roles/configure_rabbitmq/templates/rabbitmq.config.j2 create mode 100644 ansible/roles/configure_rabbitmq/templates/user_definitions.json.j2 (limited to 'ansible/roles/configure_rabbitmq/templates') 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": [] +} -- cgit 1.2.3-korg