-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch normalizes the way shares and volumes are created. Till now, the volumes were created during installation of the backend, while shares were created during Samba installation. This caused some difficulties. Now the volume is created just before creating the share which seems more logical. Some differences between backends have also been removed so that it's more uniform. Signed-off-by: Xavi Hernandez <[email protected]>
- Loading branch information
1 parent
8d3e6e8
commit cfce637
Showing
23 changed files
with
101 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
playbooks/ansible/roles/samba.setup/tasks/glusterfs/fix_share_permissions.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
playbooks/ansible/roles/samba.setup/tasks/xfs/fix_share_permissions.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
--- | ||
- name: Make shares world writable | ||
include_tasks: | ||
file: "xfs/fix_share_permissions.yml" | ||
vars: | ||
path: "{{ config.paths.mount }}/{{ item.cluster_volume }}" | ||
volume: "{{ item.device }}" | ||
with_items: "{{ samba_shares }}" | ||
run_once: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
playbooks/ansible/roles/sit.cephfs/templates/smb_share.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
[{{ name }}] | ||
comment = For samba share of subvolume {{ volume }} | ||
[{{ name }}-{{ config.be.name }}-{{ config.be.variant }}] | ||
comment = Volume '{{ name }}' from {{ config.be.name }}({{ config.be.variant }}) | ||
vfs objects = acl_xattr | ||
{%- if config.be.variant == 'vfs' %} ceph | ||
ceph:config_file = /etc/ceph/sit.ceph.conf | ||
ceph:user_id = sit | ||
{%- endif +%} | ||
browseable = yes | ||
read only = no | ||
{%- if config.be.variant == 'vfs' +%} | ||
path = {{ subvol }} | ||
{%- else +%} | ||
path = {{ path }} | ||
{%- endif +%} | ||
{%- if options is defined +%} | ||
{%- for option, value in options.items() +%} | ||
browseable = yes | ||
read only = no | ||
{%- for option, value in volume.samba.options.items() | default([]) +%} | ||
{{ option }} = {{ value }} | ||
{%- endfor +%} | ||
{%- endif +%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
playbooks/ansible/roles/sit.glusterfs/templates/smb_share.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
[{{ name }}] | ||
comment = For samba share of volume {{ volume }} | ||
[{{ name }}-{{ config.be.name }}-{{ config.be.variant }}] | ||
comment = Volume '{{ name }}' from {{ config.be.name }}({{ config.be.variant }}) | ||
vfs objects = acl_xattr glusterfs | ||
glusterfs:volume = {{ volume }} | ||
glusterfs:volume = {{ name }} | ||
glusterfs:logfile = /var/log/samba/{{ name }}.%M.log | ||
glusterfs:loglevel = 7 | ||
path = / | ||
read only = no | ||
{%- if options is defined +%} | ||
{%- for option, value in options.items() +%} | ||
{%- for option, value in volume.samba.options.items() | default([]) +%} | ||
{{ option }} = {{ value }} | ||
{%- endfor +%} | ||
{%- endif +%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
--- | ||
- name: Create the XFS filesystem | ||
filesystem: | ||
dev: "{{ item.device }}" | ||
force: true | ||
fstype: xfs | ||
loop: "{{ samba_shares }}" |
Oops, something went wrong.