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 Aug 27, 2024
1 parent ae9084b commit 08012a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
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 }}
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 08012a3

Please sign in to comment.