]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make ceph-nfs service enablement/start optional 1920/head
authorJan Provaznik <jprovazn@redhat.com>
Tue, 19 Sep 2017 09:59:54 +0000 (11:59 +0200)
committerJan Provaznik <jprovazn@redhat.com>
Tue, 19 Sep 2017 09:59:54 +0000 (11:59 +0200)
When ceph-nfs service is managed by pacemaker, it's useful to
not enable and start ceph-nfs service through systemd but let
pacemaker to start the service in a next step.

roles/ceph-nfs/defaults/main.yml
roles/ceph-nfs/tasks/docker/start_docker_nfs.yml
roles/ceph-nfs/tasks/pre_requisite.yml

index bfea2bf3ba0d589180786cce3c6d37fd34a2d071..320879ed3f43496e0daa7af0927fc1d14ab5b63c 100644 (file)
 # distributed on RGW nodes. Setting 'copy_admin_key' to 'true'
 # will copy the admin key to the /etc/ceph/ directory
 copy_admin_key: false
+# whether docker container or systemd service should be enabled
+# and started, it's useful to set it to false if nfs-ganesha
+# service is managed by pacemaker
+ceph_nfs_enable_service: true
 
 #######################
 # Access type options #
index 254ecf4e57e1eb3afe5931107768057119c46055..cdf9bb0c54a3363a4c4eabf280c6b05ab7f0f69b 100644 (file)
   shell: systemctl enable ceph-nfs@{{ ansible_hostname }}.service
   failed_when: false
   changed_when: false
+  when: ceph_nfs_enable_service
 
 - name: reload systemd unit files
   shell: systemctl daemon-reload
   changed_when: false
   failed_when: false
+  when: ceph_nfs_enable_service
 
 - name: systemd start nfs container
   service:
@@ -24,3 +26,4 @@
     state: started
     enabled: yes
   changed_when: false
+  when: ceph_nfs_enable_service
index 665345097853753d6f7bb59d10155fd1be06587d..befcb3db015e215f4d017acf22540a83cd3e869e 100644 (file)
@@ -96,3 +96,4 @@
     name: nfs-ganesha
     state: started
     enabled: yes
+  when: ceph_nfs_enable_service