diff --git a/group_vars/pbs.yml b/group_vars/pbs.yml index 6520ac76..2eb43976 100644 --- a/group_vars/pbs.yml +++ b/group_vars/pbs.yml @@ -1,4 +1,12 @@ --- +### mgrote_fileserver_smb +smb_workgroup: WORKGROUP +smb_min_protocol: "SMB2" +smb_client_min_protocol: "SMB2" +smb_client_max_protocol: "SMB3_11" +smb_enable_snapshots_dir: true +smb_enable_snapshots_shadow: true + ### mgrote_netplan netplan_configure: false diff --git a/host_vars/pbs.mgrote.net.yml b/host_vars/pbs.mgrote.net.yml index 9e96e63f..0dc2f3db 100644 --- a/host_vars/pbs.mgrote.net.yml +++ b/host_vars/pbs.mgrote.net.yml @@ -1,4 +1,60 @@ --- +# smb, warum smb auf dem Backup-Server? +# Damit der Sync über FFS laufen kann... + +### mgrote_fileserver_smb +smb_users: + - name: 'win10' + password: "{{ lookup('viczem.keepass.keepass', 'fileserver/fileserver_smb_user_win10', 'password') }}" + - name: 'michaelgrote' + password: "{{ lookup('viczem.keepass.keepass', 'fileserver/fileserver_smb_user_michaelgrote', 'password') }}" + +smb_shares: + - name: 'videos' + path: '/backup/pve5/videos' + users_ro: 'michaelgrote' + users_rw: 'michaelgrote win10' + - name: 'scans' + path: '/backup/pve5/scans' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'backup' + path: '/backup/pve5/backup' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'archiv' + path: '/backup/pve5/archiv' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'musik' + path: '/backup/pve5/music' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'tmp' + path: '/backup/pve5/tmp' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'bilder' + path: '/backup/pve5/bilder' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'restic' + users_ro: 'michaelgrote' + users_rw: 'win10' + users_rw: 'restic win10 michaelgrote' + - name: 'buecher' + users_ro: 'michaelgrote' + users_rw: 'win10' + users_rw: 'michaelgrote win10' + - name: 'programme' + path: '/backup/pve5/programme' + users_ro: 'michaelgrote' + users_rw: 'win10' + - name: 'proxmox' + path: '/backup/pve5/proxmox' + users_ro: 'michaelgrote' + users_rw: 'win10' + # pbs_* pbs_datastores: - name: zfs_backup diff --git a/playbooks/3_service/pbs.yml b/playbooks/3_service/pbs.yml index 4443545d..48275745 100644 --- a/playbooks/3_service/pbs.yml +++ b/playbooks/3_service/pbs.yml @@ -21,3 +21,5 @@ tags: "pbs_datastores" - role: mgrote_rsync tags: "rsync" + - role: mgrote_fileserver_smb + tags: "smb"