Skip to content

Commit

Permalink
sit.cephfs: Add share configured with vfs_ceph_new(mgr)
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 committed Sep 12, 2024
1 parent 945413e commit dd10e56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 3 additions & 0 deletions playbooks/roles/local.defaults/templates/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 +%}
Expand Down

0 comments on commit dd10e56

Please sign in to comment.