Merge "systemd: Add kolla.target"

This commit is contained in:
Zuul
2025-04-28 09:58:20 +00:00
committed by Gerrit Code Review
3 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ TEMPLATE = '''# ${service_name}
Description=${engine} ${service_name}
After=${deps}
Wants=${deps}
PartOf=kolla.target
StartLimitInterval=${restart_timeout}
StartLimitBurst=${restart_retries}

View File

@@ -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"

View File

@@ -0,0 +1,5 @@
[Unit]
Description=Kolla target allowing to start/stop all kolla*@.service instances at once
[Install]
WantedBy=multi-user.target