Assign new network and description attribute to Monitor role

This change adds the networks and description attributes for the
Ceph Monitor role to roles_data during upgrade.

Change-Id: If29c237d8a8e0f644d36c1e839b813d7f18a677f
This commit is contained in:
Marius Cornea 2017-11-30 23:25:02 +01:00 committed by Jose Luis Franco Arza
parent 270e429816
commit dce676bdc9
1 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,15 @@
- '\1\n networks:\n - InternalApi'
- '\1\n description: |\n Standalone messaging role with RabbitMQ being managed via Pacemaker'
- name: Assigns new attributes to Monitor role
replace:
dest: '{{ custom_roles_file.stdout }}'
regexp: '^(- name: Monitor.*)'
replace: "{{ item }}"
with_items:
- '\1\n networks:\n - Storage'
- '\1\n description: |\n Ceph Monitor role'
- name: Add services common to all roles introduced in Pike
replace:
dest: '{{ custom_roles_file.stdout }}'