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