]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container: trigger handlers on systemd file change
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 8 Jan 2018 14:00:32 +0000 (15:00 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 10 Jan 2018 15:46:42 +0000 (16:46 +0100)
When a systemd unit file is changed we should trigger handlers to
restart the services.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-mds/tasks/containerized.yml
roles/ceph-mgr/tasks/docker/start_docker_mgr.yml
roles/ceph-mon/tasks/docker/start_docker_monitor.yml
roles/ceph-nfs/tasks/start_nfs.yml
roles/ceph-osd/tasks/docker/start_docker_osd.yml
roles/ceph-rbd-mirror/tasks/docker/start_docker_rbd_mirror.yml
roles/ceph-rgw/tasks/docker/start_docker_rgw.yml

index 2a1d900b357fcef333914d0d1c2ee750bef89876..e928bd78645b4e131e1a0bec7f51148fb38b9c81 100644 (file)
@@ -49,6 +49,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph mdss
 
 - name: systemd start mds container
   systemd:
index d7e2af10c93083e35eeacdcd21958156b0077dc9..ad78bdcc28eaacaf1fc4a35aeb7dc894cb9005b2 100644 (file)
@@ -7,6 +7,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph mgrs
 
 - name: systemd start mgr container
   systemd:
index 851f4207f3afe06063b1b26b568bb8189eb655f1..02b7209f1962e60df4b169bbcff856bafdad11d5 100644 (file)
@@ -48,6 +48,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph mons
 
 - name: systemd start mon container
   systemd:
index aaf377d63526ff6a1eac5547f15c67e4d7e3e7d1..bfd3266e46114b3e1282c881df2308378a4467f5 100644 (file)
@@ -65,6 +65,8 @@
     mode: "0644"
   when:
     - containerized_deployment
+  notify:
+    - restart ceph nfss
 
 - name: systemd start nfs container
   systemd:
index 4960b9ed848125e43482ebca3d40c7dcaa2952f8..2308ffaca33db30b3bbf79ea4d702d38a30cff9e 100644 (file)
@@ -33,6 +33,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph osds
 
 - name: systemd start osd container
   systemd:
index 7f3eac0d9778baa12d2b7ed071022d683bfd6e5f..fb57cded53d8d0e6df32b19a1ff1f29835e2c2a0 100644 (file)
@@ -8,6 +8,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph rbdmirrors
 
 - name: systemd start rbd mirror container
   systemd:
index a9968c523faaaef5c6e85dfc043ceaccc8ec3715..2028758e6b96e6e9d6a7df7033632a0e67d93afb 100644 (file)
@@ -7,6 +7,8 @@
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - restart ceph rgws
 
 # For backward compatibility
 - name: disable old systemd unit ('ceph-rgw@'|'ceph-radosgw@radosgw.'|'ceph-radosgw@') if present