]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: remove nfs pool and namespace
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 4 Aug 2021 19:11:59 +0000 (15:11 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 5 Aug 2021 14:59:54 +0000 (16:59 +0200)
This has been removed from the code (orch apply name).
The default pool name is now .nfs

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml

index 486b56580db02e37d054299a56f580ea1b62c874..30052a1b985412e5c64c87358038ed49dbf005e0 100644 (file)
 
     - name: create nfs exports pool
       ceph_pool:
-        name: "{{ nfs_ganesha_export_pool_name | default('nfs-ganesha') }}"
+        name: .nfs
         cluster: "{{ cluster }}"
         application: nfs
       delegate_to: "{{ groups[mon_group_name][0] }}"
         CEPH_CONTAINER_BINARY: "{{ container_binary }}"
 
     - name: push the new exports in a rados object
-      command: "{{ rados_cmd }} -p {{ nfs_ganesha_export_pool_name | default('nfs-ganesha') }} -N {{ nfs_ganesha_export_namespace | default('nfs-ganesha') }} put conf-nfs.{{ nfs_group_name | default('nfss') }} -"
+      command: "{{ rados_cmd }} -p .nfs -N {{ nfs_ganesha_export_namespace | default('nfs-ganesha') }} put conf-nfs.{{ nfs_group_name | default('nfss') }} -"
       args:
         stdin: "{{ new_export }}"
         stdin_add_newline: no
       delegate_to: "{{ groups[mon_group_name][0] }}"
 
     - name: update the placement of nfs hosts
-      command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch apply nfs {{ nfs_group_name | default('nfss') }} {{ nfs_ganesha_export_pool_name | default('nfs-ganesha') }} {{ nfs_ganesha_export_namespace | default('nfs-ganesha') }} --placement='{{ groups.get(nfs_group_name, []) | length }} label:{{ nfs_group_name }}'"
+      command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch apply nfs {{ nfs_group_name | default('nfss') }} --placement='{{ groups.get(nfs_group_name, []) | length }} label:{{ nfs_group_name }}'"
       run_once: true
       changed_when: false
       delegate_to: "{{ groups[mon_group_name][0] }}"