Bladeren bron

updated sshfs to mount now

master
Erin Sims 2 jaren geleden
bovenliggende
commit
6da6d83ac6
3 gewijzigde bestanden met toevoegingen van 10 en 26 verwijderingen
  1. +1
    -1
      playbooks/sshfs.mount.j2
  2. +9
    -6
      playbooks/sshfs.service.j2
  3. +0
    -19
      playbooks/sshfs.service.j2.old

+ 1
- 1
playbooks/sshfs.mount.j2 Bestand weergeven

@@ -8,7 +8,7 @@ WantedBy=default.target

[Mount]
Type=fuse.sshfs
What={{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}
What={{ [username,'@',hostname,':',remotepath,item,'/' ]|join() }}
Where={{[ localpath,item,'/']|join() }}
RestartSec=20
Restart=on-failure


+ 9
- 6
playbooks/sshfs.service.j2 Bestand weergeven

@@ -2,15 +2,18 @@
Description=SSHFS Daemon
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=10

[Install]
WantedBy=default.target

[Mount]
Type=fuse.sshfs
What={{ [username,'@',hostname,':',remotepath,item,'/' ]|join() }}
Where={{[ localpath,item,'/']|join() }}
Options=_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount
TimeoutSec=120
[Service]
Type=exec
User=sshfs
Group=www-data
ExecStart=/usr/bin/sshfs -p {{sshfsport }} -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}
ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}"
RestartSec=20
Restart=on-failure


+ 0
- 19
playbooks/sshfs.service.j2.old Bestand weergeven

@@ -1,19 +0,0 @@
[Unit]
Description=SSHFS Daemon
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=10

[Install]
WantedBy=default.target

[Service]
Type=exec
User=sshfs
Group=www-data
ExecStart=/usr/bin/sshfs -p {{sshfsport }} -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}
ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}"
RestartSec=20
Restart=on-failure


Laden…
Annuleren
Opslaan