diff options
author | Stepan Andrushko <stepanx.andrushko@intel.com> | 2018-10-18 21:16:09 +0300 |
---|---|---|
committer | Emma Foley <emma.l.foley@intel.com> | 2018-10-31 19:04:21 +0000 |
commit | 5eef74f3bca008b62923563654668da3cd699e4e (patch) | |
tree | 2499efd47754e1588d79739428274c03a892fe5c /ansible/roles/configure_rabbitmq/tasks | |
parent | 1d7841d21af77492674bebf5675d6f33017baf9f (diff) |
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: I6142109563fcdb27e0ec554dd08567a1a43237e7
(cherry picked from commit d06e6da19db545dfcc6fdfdc706b9cccdb75c498)
formerly: I54369535fdb7af6af76de30f758227736f83db78
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
Diffstat (limited to 'ansible/roles/configure_rabbitmq/tasks')
-rw-r--r-- | ansible/roles/configure_rabbitmq/tasks/main.yml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ansible/roles/configure_rabbitmq/tasks/main.yml b/ansible/roles/configure_rabbitmq/tasks/main.yml index 3ad60c1ea..4ff4222dc 100644 --- a/ansible/roles/configure_rabbitmq/tasks/main.yml +++ b/ansible/roles/configure_rabbitmq/tasks/main.yml @@ -12,6 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. --- +- name: Create rabbitmq configuration + template: + src: rabbitmq.config.j2 + dest: /etc/rabbitmq/rabbitmq.config + +- name: Define user definitions file + template: + src: user_definitions.json.j2 + dest: /etc/rabbitmq/definitions.json + - name: Restart rabbitmq service: name: rabbitmq-server @@ -20,11 +30,5 @@ - name: rabbitmqctl start_app shell: rabbitmqctl start_app -- name: Configure rabbitmq - rabbitmq_user: - user: yardstick - password: yardstick - configure_priv: .* - read_priv: .* - write_priv: .* - state: present +- name: Enable management plugin + shell: rabbitmq-plugins enable rabbitmq_management |