Add var for pacemaker
Deployments with OOO previously heavily used pacemaker, they now don't. This is to support both models. Change-Id: I33eb697c49417d7cc76ef130e0fab57f225b65c7
This commit is contained in:
parent
b41523289c
commit
7433c9e9c6
@ -1 +0,0 @@
|
|||||||
---
|
|
3
ansible/browbeat/group_vars/all.yml
Normal file
3
ansible/browbeat/group_vars/all.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# If Pacemaker is managing services or not
|
||||||
|
pacemaker_controlled: false
|
@ -6,6 +6,7 @@
|
|||||||
- name: pacemaker default unmanaged
|
- name: pacemaker default unmanaged
|
||||||
become: true
|
become: true
|
||||||
command: pcs property set is-managed-default=false
|
command: pcs property set is-managed-default=false
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart ceilometer services
|
- name: restart ceilometer services
|
||||||
become: true
|
become: true
|
||||||
@ -15,6 +16,7 @@
|
|||||||
- openstack-ceilometer-central
|
- openstack-ceilometer-central
|
||||||
- openstack-ceilometer-collector
|
- openstack-ceilometer-collector
|
||||||
- openstack-ceilometer-notification
|
- openstack-ceilometer-notification
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart gnocchi services
|
- name: restart gnocchi services
|
||||||
become: true
|
become: true
|
||||||
@ -26,6 +28,7 @@
|
|||||||
- name: pacemaker default managed
|
- name: pacemaker default managed
|
||||||
become: true
|
become: true
|
||||||
command: pcs property set is-managed-default=true
|
command: pcs property set is-managed-default=true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: pacemaker cleanup ceilometer
|
- name: pacemaker cleanup ceilometer
|
||||||
become: true
|
become: true
|
||||||
@ -35,7 +38,7 @@
|
|||||||
- openstack-ceilometer-central
|
- openstack-ceilometer-central
|
||||||
- openstack-ceilometer-collector
|
- openstack-ceilometer-collector
|
||||||
- openstack-ceilometer-notification
|
- openstack-ceilometer-notification
|
||||||
when: inventory_hostname == groups['controller'][0]
|
when: inventory_hostname == groups['controller'][0] and pacemaker_controlled
|
||||||
|
|
||||||
- name: pacemaker cleanup gnocchi
|
- name: pacemaker cleanup gnocchi
|
||||||
become: true
|
become: true
|
||||||
@ -43,4 +46,4 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- openstack-gnocchi-metricd
|
- openstack-gnocchi-metricd
|
||||||
- openstack-gnocchi-statsd
|
- openstack-gnocchi-statsd
|
||||||
when: inventory_hostname == groups['controller'][0]
|
when: inventory_hostname == groups['controller'][0] and pacemaker_controlled
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- openstack-cinder-api
|
- openstack-cinder-api
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart cinder services
|
- name: restart cinder services
|
||||||
become: true
|
become: true
|
||||||
@ -22,6 +23,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- openstack-cinder-api
|
- openstack-cinder-api
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup cinder services
|
- name: cleanup cinder services
|
||||||
become: true
|
become: true
|
||||||
@ -29,3 +31,4 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- openstack-cinder-api
|
- openstack-cinder-api
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
- name: pacemaker default unmanaged
|
- name: pacemaker default unmanaged
|
||||||
become: true
|
become: true
|
||||||
command: pcs property set is-managed-default=false
|
command: pcs property set is-managed-default=false
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: stop keystone service
|
- name: stop keystone service
|
||||||
become: true
|
become: true
|
||||||
@ -25,10 +26,9 @@
|
|||||||
- name: pacemaker default managed
|
- name: pacemaker default managed
|
||||||
become: true
|
become: true
|
||||||
command: pcs property set is-managed-default=true
|
command: pcs property set is-managed-default=true
|
||||||
when: "'eventlet' in '{{ keystone_deployment }}'"
|
when: "'eventlet' in '{{ keystone_deployment }}' and pacemaker_controlled"
|
||||||
|
|
||||||
- name: pacemaker cleanup keystone
|
|
||||||
become: true
|
become: true
|
||||||
command: pcs resource cleanup openstack-keystone
|
command: pcs resource cleanup openstack-keystone
|
||||||
when: "'eventlet' in '{{ keystone_deployment }}'"
|
when: "'eventlet' in '{{ keystone_deployment }}' and pacemaker_controlled"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
become: true
|
become: true
|
||||||
command: pcs property set is-managed-default=false
|
command: pcs property set is-managed-default=false
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: stop keystone eventlet
|
- name: stop keystone eventlet
|
||||||
become: true
|
become: true
|
||||||
@ -29,14 +30,16 @@
|
|||||||
# OSP8 and below uncomment, so only pcs managed when keystone in eventlet
|
# OSP8 and below uncomment, so only pcs managed when keystone in eventlet
|
||||||
# when: "'eventlet' in '{{ keystone_deployment }}'"
|
# when: "'eventlet' in '{{ keystone_deployment }}'"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup keystone
|
- name: cleanup keystone
|
||||||
become: true
|
become: true
|
||||||
command: pcs resource cleanup openstack-keystone
|
command: pcs resource cleanup openstack-keystone
|
||||||
when: "'eventlet' in '{{ keystone_deployment }}'"
|
when: "'eventlet' in '{{ keystone_deployment }}' and pacemaker_controlled"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: cleanup httpd
|
- name: cleanup httpd
|
||||||
become: true
|
become: true
|
||||||
command: pcs resource cleanup httpd
|
command: pcs resource cleanup httpd
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -105,12 +105,12 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
backup: true
|
backup: true
|
||||||
with_items:
|
with_items:
|
||||||
- ip_address: "{{ admin_ip_addr.stdout }}"
|
- ip_address: "{{ admin_ip_addr.stdout | default('') }}"
|
||||||
interface: "admin"
|
interface: "admin"
|
||||||
processes: "{{ workers }}"
|
processes: "{{ workers }}"
|
||||||
port: 35357
|
port: 35357
|
||||||
threads: "{{ threads }}"
|
threads: "{{ threads }}"
|
||||||
- ip_address: "{{ public_ip_addr.stdout }}"
|
- ip_address: "{{ public_ip_addr.stdout | default('') }}"
|
||||||
interface: "main"
|
interface: "main"
|
||||||
processes: "{{ workers }}"
|
processes: "{{ workers }}"
|
||||||
port: 5000
|
port: 5000
|
||||||
@ -128,8 +128,8 @@
|
|||||||
line: "Listen {{item}}"
|
line: "Listen {{item}}"
|
||||||
backup: true
|
backup: true
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ public_ip_addr.stdout }}:5000"
|
- "{{ public_ip_addr.stdout | default('') }}:5000"
|
||||||
- "{{ admin_ip_addr.stdout }}:35357"
|
- "{{ admin_ip_addr.stdout | default('') }}:35357"
|
||||||
when: "'httpd' in '{{ keystone_deployment }}'"
|
when: "'httpd' in '{{ keystone_deployment }}'"
|
||||||
notify:
|
notify:
|
||||||
- pacemaker unmanaged default
|
- pacemaker unmanaged default
|
||||||
@ -145,8 +145,8 @@
|
|||||||
line: "Listen {{item}}"
|
line: "Listen {{item}}"
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ public_ip_addr.stdout }}:5000"
|
- "{{ public_ip_addr.stdout | default('') }}:5000"
|
||||||
- "{{ admin_ip_addr.stdout }}:35357"
|
- "{{ admin_ip_addr.stdout | default('') }}:35357"
|
||||||
when: "'eventlet' in '{{ keystone_deployment }}'"
|
when: "'eventlet' in '{{ keystone_deployment }}'"
|
||||||
notify:
|
notify:
|
||||||
- pacemaker unmanaged default
|
- pacemaker unmanaged default
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
|
|
||||||
- name: restart neutron services
|
- name: restart neutron services
|
||||||
service: name={{ item }} state=restarted
|
service: name={{ item }} state=restarted
|
||||||
@ -22,6 +24,7 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup neutron services
|
- name: cleanup neutron services
|
||||||
command: pcs resource cleanup {{ item }}
|
command: pcs resource cleanup {{ item }}
|
||||||
@ -29,3 +32,4 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart neutron services
|
- name: restart neutron services
|
||||||
become: true
|
become: true
|
||||||
@ -25,6 +26,7 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup neutron services
|
- name: cleanup neutron services
|
||||||
become: true
|
become: true
|
||||||
@ -33,3 +35,4 @@
|
|||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-metadata-agent
|
- neutron-metadata-agent
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart nova services
|
- name: restart nova services
|
||||||
become: true
|
become: true
|
||||||
@ -28,6 +29,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup nova services
|
- name: cleanup nova services
|
||||||
become: true
|
become: true
|
||||||
@ -37,3 +39,4 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart nova services
|
- name: restart nova services
|
||||||
service: name={{ item }} state=restarted
|
service: name={{ item }} state=restarted
|
||||||
@ -25,6 +26,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup nova services
|
- name: cleanup nova services
|
||||||
command: pcs resource cleanup {{ item }}
|
command: pcs resource cleanup {{ item }}
|
||||||
@ -33,3 +35,4 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: restart nova services
|
- name: restart nova services
|
||||||
become: true
|
become: true
|
||||||
@ -28,6 +29,7 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
|
||||||
- name: cleanup nova services
|
- name: cleanup nova services
|
||||||
become: true
|
become: true
|
||||||
@ -37,3 +39,4 @@
|
|||||||
- openstack-nova-scheduler
|
- openstack-nova-scheduler
|
||||||
- openstack-nova-conductor
|
- openstack-nova-conductor
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: pacemaker_controlled
|
||||||
|
Loading…
Reference in New Issue
Block a user