Split out this into 3 handlers to avoid warnings

This commit is contained in:
Kevin Fenzi 2016-06-22 19:27:37 +00:00
parent 6df32be8f3
commit f8bca830ba
2 changed files with 38 additions and 12 deletions

View file

@ -128,9 +128,13 @@
- name: restart stunnel
service: name=stunnel state=restarted
- name: restart cinder
- name: restart cinder api
service: name=openstack-cinder-api state=restarted
- name: restart cinder scheduler
service: name=openstack-cinder-scheduler state=restarted
- name: restart cinder volume
service: name=openstack-cinder-volume state=restarted
- name: restart autocloud

View file

@ -522,40 +522,62 @@
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Cloud_Administrator_Guide/section_manage-volumes.html
- ini_file: dest=/etc/cinder/cinder.conf section=DEFAULT option="enabled_backends" value="equallogic-1,lvmdriver-1"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
# LVM
- ini_file: dest=/etc/cinder/cinder.conf section="lvmdriver-1" option="volume_group" value="cinder-volumes"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="lvmdriver-1" option="volume_driver" value="cinder.volume.drivers.lvm.LVMISCSIDriver"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="lvmdriver-1" option="volume_backend_name" value="LVM_iSCSI"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
# Dell EqualLogic - http://docs.openstack.org/trunk/config-reference/content/dell-equallogic-driver.html
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="volume_driver" value="cinder.volume.drivers.eqlx.DellEQLSanISCSIDriver"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="san_ip" value="{{ IP_EQLX }}"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="san_login" value="{{ SAN_UNAME }}"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- name: set password for equallogic-1
ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="san_password" value="{{ SAN_PW }}"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="eqlx_group_name" value="{{ EQLX_GROUP }}"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="eqlx_pool" value="{{ EQLX_POOL }}"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="volume_backend_name" value="equallogic"
notify:
- restart cinder
- restart cinder api
- restart cinder scheduler
- restart cinder volume
# flush handlers here in case cinder changes and we need to restart it.
- meta: flush_handlers