Merge "systemd: Add kolla.target"
This commit is contained in:
@@ -24,6 +24,7 @@ TEMPLATE = '''# ${service_name}
|
||||
Description=${engine} ${service_name}
|
||||
After=${deps}
|
||||
Wants=${deps}
|
||||
PartOf=kolla.target
|
||||
StartLimitInterval=${restart_timeout}
|
||||
StartLimitBurst=${restart_retries}
|
||||
|
||||
|
||||
@@ -39,6 +39,12 @@
|
||||
command: systemd-tmpfiles --create
|
||||
when: kolla_container_engine == 'podman'
|
||||
|
||||
- name: Copying over kolla.target
|
||||
become: true
|
||||
template:
|
||||
src: kolla.target.j2
|
||||
dest: /etc/systemd/system/kolla.target
|
||||
|
||||
- name: Copying over config.json files for services
|
||||
template:
|
||||
src: "{{ item.key }}.json.j2"
|
||||
|
||||
5
ansible/roles/common/templates/kolla.target.j2
Normal file
5
ansible/roles/common/templates/kolla.target.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
[Unit]
|
||||
Description=Kolla target allowing to start/stop all kolla*@.service instances at once
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user