enable all services are started at boot
This commit is contained in:
parent
018fdd8bdb
commit
257a384e92
|
@ -7,9 +7,14 @@
|
|||
mode: 644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: install service file
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: cassandra.service
|
||||
state: started
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable cassandra.service
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
owner: root
|
||||
group: root
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable cinder-controller.service
|
||||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: Initialize database.
|
||||
|
|
|
@ -55,6 +55,9 @@
|
|||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable cinder-storage.service
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: cinder-storage.service
|
||||
|
|
|
@ -7,13 +7,18 @@
|
|||
mode: 644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: install service file
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: dockerregistry.service
|
||||
state: started
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable dockerregistry.service
|
||||
|
||||
- name: Copy certificates and passwd file
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
owner: root
|
||||
group: root
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable glance.service
|
||||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: Initialize database.
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable horizon.service
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: horizon.service
|
||||
|
|
|
@ -36,6 +36,9 @@
|
|||
- name: install service file
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable keystone.service
|
||||
|
||||
- name: Initialize db
|
||||
script: scripts/initialize_db.sh
|
||||
environment:
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
owner: root
|
||||
group: root
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable mysql.service
|
||||
|
||||
- name: make mariadb settings volume
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
|
|
|
@ -7,8 +7,13 @@
|
|||
mode: 644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: install service file
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable memcached.service
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: memcached.service
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable neutron-controller.service
|
||||
|
||||
- name: Initialize neutron
|
||||
command: >
|
||||
/usr/bin/docker run --rm
|
||||
|
|
|
@ -38,6 +38,9 @@
|
|||
name: nova-compute.service
|
||||
state: restarted
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable nova-compute.service
|
||||
|
||||
- name: let nova controler discover new host
|
||||
command: docker exec -i nova-controller.service nova-manage cell_v2 discover_hosts
|
||||
delegate_to: "{{ hostvars[groups['nova-controller'][0]]['ansible_hostname'] }}"
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
|
||||
- command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable nova-controller.service
|
||||
|
||||
- name: Initialize database.
|
||||
command: >
|
||||
/usr/bin/docker run --rm
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
- name: install service file
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable rabbitmq.service
|
||||
|
||||
- name: make sure service is started
|
||||
systemd:
|
||||
name: rabbitmq.service
|
||||
|
|
Loading…
Reference in New Issue