add var credential file

This commit is contained in:
vincent 2019-02-07 19:38:51 +01:00
parent bf5e53c417
commit 2b87218b07

View File

@ -4,20 +4,73 @@ systemd_mounts:
mount: /mnt/diskstation/media mount: /mnt/diskstation/media
type: cifs type: cifs
options: options:
- user=admin - rw
- password= - credentials=/etc/creds/.diskstation_credentials
- uid=1024 - uid=1000
automount: true automount: true
diskstation_music: diskstation_music:
share: //diskstation/music share: //diskstation/music
mount: /mnt/diskstation/music mount: /mnt/diskstation/music
type: cifs type: cifs
options: options:
- user=admin - rw
- password=XiEhusW6 - credentials=/etc/creds/.diskstation_credentials
- uid=1024 - uid=1000
automount: true automount: true
diskstation_ebook:
share: //diskstation/ebook
mount: /mnt/diskstation/ebook
type: cifs
options:
- rw
- credentials=/etc/creds/.diskstation_credentials
- uid=1000
automount: true
diskstation_photo:
share: //diskstation/photo
mount: /mnt/diskstation/photo
type: cifs
options:
-rw
- credentials=/etc/creds/.diskstation_credentials
- uid=1000
automount: true
diskstation_home:
share: //diskstation/home
mount: /mnt/diskstation/home
type: cifs
options:
- rw
- credentials=/etc/creds/.diskstation_credentials
- uid=1000
automount: true
diskstation_keepass:
share: https://diskstation.ducamps.win\:5006/home/keepass
mount: /mnt/diskstation/keepass
type: davfs
options:
- rw
- uid=1000
automount: true
share_credential_file:
samba_dikstation:
path: /etc/creds/.diskstation_credentials
content:
- username=admin
- password=XiEhusW6
- domain=WORKGROUP
davfs:
path: /etc/creds/.diskstation_credentials
content:
- https://diskstation.ducamps.win:5006/home/keepass admin XiEhusW6
systemd_mounts_enabled: systemd_mounts_enabled:
- diskstation_media - diskstation_media
- diskstation_music - diskstation_music
- diskstation_ebook
- diskstation_photo
- diskstation_home
- diskstation_keepass