mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1920 from jprovaznik/ganesha
Make ceph-nfs service enablement/start optionalpull/1929/head
commit
7aab133617
|
@ -10,6 +10,10 @@
|
||||||
# distributed on RGW nodes. Setting 'copy_admin_key' to 'true'
|
# distributed on RGW nodes. Setting 'copy_admin_key' to 'true'
|
||||||
# will copy the admin key to the /etc/ceph/ directory
|
# will copy the admin key to the /etc/ceph/ directory
|
||||||
copy_admin_key: false
|
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 #
|
# Access type options #
|
||||||
|
|
|
@ -12,11 +12,13 @@
|
||||||
shell: systemctl enable ceph-nfs@{{ ansible_hostname }}.service
|
shell: systemctl enable ceph-nfs@{{ ansible_hostname }}.service
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: ceph_nfs_enable_service
|
||||||
|
|
||||||
- name: reload systemd unit files
|
- name: reload systemd unit files
|
||||||
shell: systemctl daemon-reload
|
shell: systemctl daemon-reload
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
when: ceph_nfs_enable_service
|
||||||
|
|
||||||
- name: systemd start nfs container
|
- name: systemd start nfs container
|
||||||
service:
|
service:
|
||||||
|
@ -24,3 +26,4 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: ceph_nfs_enable_service
|
||||||
|
|
|
@ -98,3 +98,4 @@
|
||||||
name: nfs-ganesha
|
name: nfs-ganesha
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: ceph_nfs_enable_service
|
||||||
|
|
Loading…
Reference in New Issue