]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Updates ceph systemd unit files and reloads systemd v4.0.70.22
authorTeoman ONAY <tonay@ibm.com>
Wed, 18 Jan 2023 09:28:08 +0000 (10:28 +0100)
committerTeoman ONAY <tonay@redhat.com>
Tue, 31 Jan 2023 13:19:08 +0000 (14:19 +0100)
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2147570
Signed-off-by: Teoman ONAY <tonay@ibm.com>
infrastructure-playbooks/rolling_update.yml

index d3244fa5605e1ccdb76e3c0f3196f3a257ed7dbc..8e7daa2a86359b7a34adb6b8f920b84c0f51de5d 100644 (file)
                   when: (check_quorum_status.stdout | from_json).quorum | length != groups[mon_group_name] | length
               when: inventory_hostname == groups[mon_group_name] | first
 
+        - name: Replace ceph-mon systemd unit
+          when: container_binary == 'docker'
+          block:
+            - import_role:
+                name: ceph-mon
+                tasks_from: systemd.yml
+
+            - name: reload systemd config files
+              systemd:
+                daemon_reload: true
+
         - name: ensure /var/lib/ceph/bootstrap-rbd-mirror is present
           file:
             path: /var/lib/ceph/bootstrap-rbd-mirror
             name: ceph-defaults
         - import_role:
             name: ceph-facts
+            
+        - name: Replace ceph-mgr systemd unit
+          when: container_binary == 'docker'
+          block:
+            - import_role:
+                name: ceph-mgr
+                tasks_from: systemd.yml
+
+            - name: reload systemd config files
+              systemd:
+                daemon_reload: true
+
         - import_role:
             name: ceph-handler
         - import_role:
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+
+    - name: Replace ceph-mgr systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-mgr
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - import_role:
         name: ceph-handler
     - import_role:
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+        
+    - name: Replace ceph-osd systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-osd
+            tasks_from: container_options_facts.yml
+
+        - import_role:
+            name: ceph-osd
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - import_role:
         name: ceph-handler
     - import_role:
     - import_role:
         name: ceph-facts
 
+    - name: Replace ceph-mds systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-mds
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - name: prevent restart from the packaging
       systemd:
         name: ceph-mds@{{ ansible_facts['hostname'] }}
     - import_role:
         name: ceph-facts
 
+    - name: Replace ceph-mds systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-mds
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - name: prevent restarts from the packaging
       systemd:
         name: ceph-mds@{{ ansible_facts['hostname'] }}
     - import_role:
         name: ceph-facts
 
+    - name: Replace ceph-rgw systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-rgw
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - name: stop ceph rgw when upgrading from stable-3.2
       systemd:
         name: ceph-radosgw@rgw.{{ ansible_facts['hostname'] }}
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+
+    - name: Replace ceph-rbdmirrors systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-rbd-mirror
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - import_role:
         name: ceph-handler
     - import_role:
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+
+    - name: Replace ceph-nfs systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-nfs
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - import_role:
         name: ceph-handler
     - import_role:
     - import_role:
         name: ceph-facts
         tasks_from: container_binary.yml
+
+    - name: Replace ceph-crash systemd unit
+      when: container_binary == 'docker'
+      block:
+        - import_role:
+            name: ceph-crash
+            tasks_from: systemd.yml
+
+        - name: reload systemd config files
+          systemd:
+            daemon_reload: true
+
     - import_role:
         name: ceph-handler