Skip to content

Commit

Permalink
sit.cephfs: Add share configured with vfs_ceph_new
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
  • Loading branch information
anoopcs9 committed Aug 10, 2024
1 parent ae84f60 commit ba53b45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playbooks/ansible/cluster-cephfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ samba_netbios_name: "SIT-CEPHFS-TEST"

samba_shares:
- name: share
strategy: ['kclient', 'vfs']
strategy: ['kclient', 'vfs', 'vfs.new']
samba:
options:
"acl_xattr:security_acl_name": "user.NTACL"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ resources:
{%- for share in samba_shares +%}
{%- for method in share.strategy | default([]) +%}
{%- if method != 'kclient' +%}
{%- 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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
comment = Volume '{{ volume.name }}' from {{ config.be.name }}({{ config.be.variant }} {{ method }})
vfs objects = acl_xattr ceph_snapshots
{%- if method != 'kclient' %}
{%- set vfs = 'ceph' %} {{ vfs }}
{%- set vfs = 'ceph_new' %}
{%- if method == 'vfs' %}
{%- set vfs = 'ceph' %}
{%- endif %} {{ vfs }}
{{ vfs }}:config_file = /etc/ceph/sit.ceph.conf
{{ vfs }}:user_id = sit
path = {{ subvol }}
Expand Down

0 comments on commit ba53b45

Please sign in to comment.