mirror of https://github.com/ceph/ceph-ansible.git
container: align systemd units with rpm
Update `After=` and `Wants=` parameters in container systemd units
and make them be aligned with the systemd units that come
from the packaging.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2027440
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f01536ea19
)
pull/7042/head
parent
7791fac222
commit
9f04949ba0
|
@ -1,11 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Ceph crash dump collector
|
Description=Ceph crash dump collector
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
{% if container_binary == 'podman' %}
|
{% if container_binary == 'podman' %}
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=grafana-server
|
Description=grafana-server
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=RBD Target API Service
|
Description=RBD Target API Service
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=RBD Target Gateway Service
|
Description=RBD Target Gateway Service
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TCMU Runner
|
Description=TCMU Runner
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=Ceph MDS
|
Description=Ceph MDS
|
||||||
PartOf=ceph-mds.target
|
PartOf=ceph-mds.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_mds_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_mds_docker_cpu_limit|int %}
|
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_mds_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_mds_docker_cpu_limit|int %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=Ceph Manager
|
Description=Ceph Manager
|
||||||
PartOf=ceph-mgr.target
|
PartOf=ceph-mgr.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=Ceph Monitor
|
Description=Ceph Monitor
|
||||||
PartOf=ceph-mon.target
|
PartOf=ceph-mon.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=NFS-Ganesha file server
|
Description=NFS-Ganesha file server
|
||||||
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
|
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Node Exporter
|
Description=Node Exporter
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
Description=Ceph OSD
|
Description=Ceph OSD
|
||||||
PartOf=ceph-osd.target
|
PartOf=ceph-osd.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_osd_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_osd_docker_cpu_limit|int %}
|
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_osd_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_osd_docker_cpu_limit|int %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=alertmanager
|
Description=alertmanager
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory={{ alertmanager_data_dir }}
|
WorkingDirectory={{ alertmanager_data_dir }}
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=prometheus
|
Description=prometheus
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=Ceph RBD mirror
|
Description=Ceph RBD mirror
|
||||||
PartOf=ceph-rbd-mirror.target
|
PartOf=ceph-rbd-mirror.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
Description=Ceph RGW
|
Description=Ceph RGW
|
||||||
PartOf=ceph-radosgw.target
|
PartOf=ceph-radosgw.target
|
||||||
{% if container_binary == 'docker' %}
|
{% if container_binary == 'docker' %}
|
||||||
After=docker.service
|
After=docker.service network-online.target local-fs.target time-sync.target
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
{% else %}
|
{% else %}
|
||||||
After=network.target
|
After=network-online.target local-fs.target time-sync.target
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Wants=network-online.target local-fs.target time-sync.target
|
||||||
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_rgw_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_rgw_docker_cpu_limit|int %}
|
{% set cpu_limit = ansible_facts['processor_vcpus']|int if ceph_rgw_docker_cpu_limit|int > ansible_facts['processor_vcpus']|int else ceph_rgw_docker_cpu_limit|int %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
Loading…
Reference in New Issue