diff --git a/playbooks/ansible/roles/sit.cephfs/templates/ceph.smb.share.yml.j2 b/playbooks/ansible/roles/sit.cephfs/templates/ceph.smb.share.yml.j2 index 6c048ed..b8d474b 100644 --- a/playbooks/ansible/roles/sit.cephfs/templates/ceph.smb.share.yml.j2 +++ b/playbooks/ansible/roles/sit.cephfs/templates/ceph.smb.share.yml.j2 @@ -1,10 +1,13 @@ resources: {%- for share in samba_shares +%} {%- for method in config.be.methods +%} - {%- set provider = 'samba-vfs' +%} + {%- set provider = 'samba-vfs/new' +%} + {%- if method == 'vfs' +%} + {%- set provider = 'samba-vfs/classic' +%} + {%- endif +%} - resource_type: ceph.smb.share cluster_id: site - share_id: {{ share.name }} + share_id: {{ share.name }}-{{ method }} intent: present name: {{ share.name }}-{{ config.be.name }}-{{ config.be.variant }}-{{ method }} cephfs: diff --git a/playbooks/roles/local.defaults/templates/config.yml.j2 b/playbooks/roles/local.defaults/templates/config.yml.j2 index 29fe04f..fe77410 100644 --- a/playbooks/roles/local.defaults/templates/config.yml.j2 +++ b/playbooks/roles/local.defaults/templates/config.yml.j2 @@ -19,6 +19,9 @@ config: {%- set methods = settings.environments[be].data.methods +%} {%- if variant != 'default' +%} {%- set methods = ['vfs'] +%} + {%- if variant == 'mgr' %} + {{ methods.append('vfs-new') }} + {%- endif +%} {%- endif +%} methods: {{ methods }} {%- endif +%} diff --git a/playbooks/settings.yml b/playbooks/settings.yml index 008a65e..2e1ba4a 100644 --- a/playbooks/settings.yml +++ b/playbooks/settings.yml @@ -362,7 +362,7 @@ environments: data: branch: main ctdb_mutex: rados - methods: ['kclient', 'vfs', 'vfs.new'] + methods: ['kclient', 'vfs', 'vfs-new'] nodes: setup: