summaryrefslogtreecommitdiff
path: root/manifests/autossh.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/autossh.pp')
-rw-r--r--manifests/autossh.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/autossh.pp b/manifests/autossh.pp
index 80d571b..e94d65b 100644
--- a/manifests/autossh.pp
+++ b/manifests/autossh.pp
@@ -23,12 +23,16 @@ class sshd::autossh($host,
mode => '0444',
content => "DAEMON_OPTS='-o ServerAliveInterval=15 -o ServerAliveCountMax=4 -q -N -R $port_ensure:localhost:22 $user_ensure@$host'\n";
}
+ package { 'autossh':
+ ensure => present,
+ }
service { 'autossh':
ensure => running,
enable => true,
subscribe => [
- File['/etc/init.d/autossh'],
- File['/etc/default/autossh']
- ],
+ File['/etc/init.d/autossh'],
+ File['/etc/default/autossh'],
+ Package['autossh'],
+ ],
}
}