Pārlūkot izejas kodu

working on changes, and debugging

master
Erin Sims pirms 2 gadiem
vecāks
revīzija
5558942fec
2 mainītis faili ar 34 papildinājumiem un 0 dzēšanām
  1. +15
    -0
      playbooks/sshfs.mount.j2
  2. +19
    -0
      playbooks/sshfs.service.j2.old

+ 15
- 0
playbooks/sshfs.mount.j2 Parādīt failu

@@ -0,0 +1,15 @@
[Unit]
Description=SSHFS Daemon
After=network-online.target
Wants=network-online.target

[Install]
WantedBy=default.target

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


+ 19
- 0
playbooks/sshfs.service.j2.old Parādīt failu

@@ -0,0 +1,19 @@
[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


Notiek ielāde…
Atcelt
Saglabāt