Support for enabling Apple SMB extensions

Adds support for enabling Apples SMB extensions via the VFS fruit module.

This is necessary for Time Machine backups to Samba.

Related to #32
This commit is contained in:
Karl Goetz 2018-09-03 15:23:50 +10:00
parent 967b64f048
commit cc4926237e
6 changed files with 21 additions and 0 deletions

View File

@ -33,6 +33,7 @@ No specific requirements
| Variable | Default | Comments | | Variable | Default | Comments |
| :--- | :--- | :--- | | :--- | :--- | :--- |
| `samba_apple_extensions` | no | When yes, enables support for Apple specific SMB extensions. Required for Time Machine support to work (see below) |
| `samba_create_varwww_symlinks` | false | When true, symlinks are created in web docroot to the shares. (`var/www/` or `/var/www/html` depending on platform) | | `samba_create_varwww_symlinks` | false | When true, symlinks are created in web docroot to the shares. (`var/www/` or `/var/www/html` depending on platform) |
| `samba_cups_server` | localhost:631 | Value for the global option `cups server` (only needed when `samba_printer_type` is "cups") | | `samba_cups_server` | localhost:631 | Value for the global option `cups server` (only needed when `samba_printer_type` is "cups") |
| `samba_domain_master` | true | When true, smbd enables WAN-wide browse list collation | | `samba_domain_master` | true | When true, smbd enables WAN-wide browse list collation |
@ -57,6 +58,7 @@ No specific requirements
| `samba_shares_root` | `/srv/shares` | Directories for the shares are created under this directory. | | `samba_shares_root` | `/srv/shares` | Directories for the shares are created under this directory. |
| `samba_shares` | [] | List of dicts containing share definitions. See below for details. | | `samba_shares` | [] | List of dicts containing share definitions. See below for details. |
| `samba_users` | [] | List of dicts defining users that can access shares. | | `samba_users` | [] | List of dicts defining users that can access shares. |
| `samba_vfs_packages` | Varies by distribution | List of packages required for Samba VFS support. |
| `samba_wins_support` | true | When true, Samba will act as a WINS server | | `samba_wins_support` | true | When true, Samba will act as a WINS server |
| `samba_workgroup` | `WORKGROUP` | Name of the server workgroup. | | `samba_workgroup` | `WORKGROUP` | Name of the server workgroup. |

View File

@ -15,6 +15,14 @@
with_items: "{{ samba_packages }}" with_items: "{{ samba_packages }}"
tags: samba tags: samba
- name: Install Samba VFS extensions packages
package:
name: "{{ item }}"
state: present
with_items: "{{ samba_vfs_packages }}"
when: samba_vfs_packages is defined
tags: samba
- name: Install SELinux package - name: Install SELinux package
package: package:
name: "{{ item }}" name: "{{ item }}"

View File

@ -13,6 +13,10 @@
{% endif %} {% endif %}
server string = {{ samba_server_string }} server string = {{ samba_server_string }}
{% if samba_apple_extensions is defined %}
fruit:aapl = yes
{% endif %}
# Logging # Logging
{% if samba_log is defined %} {% if samba_log is defined %}
log file = {{ samba_log }} log file = {{ samba_log }}

View File

@ -5,6 +5,8 @@ samba_packages:
- samba - samba
- smbclient - smbclient
samba_vfs_packages: []
samba_selinux_packages: [] samba_selinux_packages: []
samba_selinux_booleans: [] samba_selinux_booleans: []

View File

@ -6,6 +6,9 @@ samba_packages:
- samba - samba
- samba-client - samba-client
samba_vfs_packages:
- samba-vfs-modules
samba_selinux_packages: [] samba_selinux_packages: []
samba_selinux_booleans: [] samba_selinux_booleans: []

View File

@ -6,6 +6,8 @@ samba_packages:
- samba - samba
- samba-client - samba-client
samba_vfs_packages: []
samba_selinux_packages: samba_selinux_packages:
- libsemanage-python - libsemanage-python