Skip to content

Commit

Permalink
sit.cephfs: Add optional support to use vfs_ceph_new
Browse files Browse the repository at this point in the history
Accept the format 'cephfs.vfs.new' for backend variable to optionally
configure CephFS shares using the recently merged[1] new vfs module.

[1] https://gitlab.com/samba-team/samba/-/merge_requests/3718

Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 committed Aug 5, 2024
1 parent cacd5a7 commit a2bc91a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions playbooks/ansible/roles/sit.cephfs/tasks/new_share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
dest: "{{ file }}"
vars:
subvol: "{{ ceph_subvol.stdout }}"
vfs_mode: "{{ (config.be.suffix == 'new') | ternary('ceph_new', 'ceph') }}"
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[{{ name }}-{{ config.be.name }}-{{ config.be.variant }}]
comment = Volume '{{ name }}' from {{ config.be.name }}({{ config.be.variant }})
vfs objects = acl_xattr ceph_snapshots
{%- if config.be.variant == 'vfs' %} ceph
ceph:config_file = /etc/ceph/sit.ceph.conf
ceph:user_id = sit
{%- if config.be.variant == 'vfs' %} {{ vfs_mode }}
{{ vfs_mode }}:config_file = /etc/ceph/sit.ceph.conf
{{ vfs_mode }}:user_id = sit
path = {{ subvol }}
{%- else +%}
path = {{ path }}
Expand Down

0 comments on commit a2bc91a

Please sign in to comment.