Merge "Convert the nova playbook to use newer ansible syntax"
This commit is contained in:
commit
baf01ffd43
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Install nova-conductor services
|
- name: Install nova-conductor services
|
||||||
include: common-playbooks/nova.yml
|
import_playbook: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_conductor"
|
nova_hosts: "nova_conductor"
|
||||||
nova_serial: "{{ nova_conductor_serial | default(['1', '100%']) }}"
|
nova_serial: "{{ nova_conductor_serial | default(['1', '100%']) }}"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install nova-scheduler services
|
- name: Install nova-scheduler services
|
||||||
include: common-playbooks/nova.yml
|
import_playbook: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_scheduler:!nova_conductor"
|
nova_hosts: "nova_scheduler:!nova_conductor"
|
||||||
nova_serial: "{{ nova_scheduler_serial | default(['1', '100%']) }}"
|
nova_serial: "{{ nova_scheduler_serial | default(['1', '100%']) }}"
|
||||||
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install nova API services
|
- name: Install nova API services
|
||||||
include: common-playbooks/nova.yml
|
import_playbook: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_api_os_compute:nova_api_placement:!nova_conductor:!nova_scheduler:!nova_consoleauth"
|
nova_hosts: "nova_api_os_compute:nova_api_placement:!nova_conductor:!nova_scheduler:!nova_consoleauth"
|
||||||
nova_serial: "{{ nova_api_serial | default(['1', '100%']) }}"
|
nova_serial: "{{ nova_api_serial | default(['1', '100%']) }}"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install nova console/metadata services
|
- name: Install nova console/metadata services
|
||||||
include: common-playbooks/nova.yml
|
import_playbook: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_api_metadata:nova_console:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement"
|
nova_hosts: "nova_api_metadata:nova_console:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement"
|
||||||
nova_serial: "{{ nova_console_serial | default(['1', '100%']) }}"
|
nova_serial: "{{ nova_console_serial | default(['1', '100%']) }}"
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install nova compute
|
- name: Install nova compute
|
||||||
include: common-playbooks/nova.yml
|
import_playbook: common-playbooks/nova.yml
|
||||||
vars:
|
vars:
|
||||||
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
|
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
|
||||||
nova_serial: "{{ nova_compute_serial | default('100%') }}"
|
nova_serial: "{{ nova_compute_serial | default('100%') }}"
|
||||||
@ -115,7 +115,7 @@
|
|||||||
- nova
|
- nova
|
||||||
tasks:
|
tasks:
|
||||||
- name: Execute nova service reload
|
- name: Execute nova service reload
|
||||||
include: common-tasks/restart-service.yml
|
import_tasks: common-tasks/restart-service.yml
|
||||||
vars:
|
vars:
|
||||||
service_name: "nova"
|
service_name: "nova"
|
||||||
# NOTE(mnaser): There is a bug in oslo.service which actually restarts
|
# NOTE(mnaser): There is a bug in oslo.service which actually restarts
|
||||||
@ -148,7 +148,7 @@
|
|||||||
- nova
|
- nova
|
||||||
tasks:
|
tasks:
|
||||||
- name: Execute nova service restart
|
- name: Execute nova service restart
|
||||||
include: common-tasks/restart-service.yml
|
import_tasks: common-tasks/restart-service.yml
|
||||||
vars:
|
vars:
|
||||||
service_name: "nova"
|
service_name: "nova"
|
||||||
service_action: "restarted"
|
service_action: "restarted"
|
||||||
|
Loading…
Reference in New Issue
Block a user