aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorsebas <sebas@f006c9fa-d829-0410-90dc-981dd8ba64c0>2009-12-23 03:36:18 +0000
committersebas <sebas@f006c9fa-d829-0410-90dc-981dd8ba64c0>2009-12-23 03:36:18 +0000
commit9d0fd33d5a30f385b6a1b84665858c063e11a8e7 (patch)
treefb713efed3e7f44854bbfc4d0f80db45c618e0a0 /manifests/init.pp
downloadpuppet-autossh-9d0fd33d5a30f385b6a1b84665858c063e11a8e7.tar.gz
puppet-autossh-9d0fd33d5a30f385b6a1b84665858c063e11a8e7.tar.bz2
nuevo modulo para hacer tuneles ssh
git-svn-id: https://svn.redcta.org.ar/proyectos/redcta/trunk/puppet/modules/puppet-autossh@499 f006c9fa-d829-0410-90dc-981dd8ba64c0
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..6915a44
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,21 @@
+class autossh {
+ package { "autossh":
+ ensure => installed,
+ }
+
+ file {
+ "/etc/init.d/tunnel-autossh":
+ owner => root,
+ group => root,
+ mode => 755,
+ require => Package["autossh"],
+ content => template("autossh/tunnel-autossh.erb");
+ }
+
+ exec { "autossh_update_rcd":
+ command => "update-rc.d tunnel-autossh start 18 2 3 4 5 . stop 81 0 1 6 .",
+ creates => "/etc/rc2.d/S18tunnel-autossh",
+ path => "/bin:/sbin:/usr/sbin:/usr/bin",
+ require => [ Package["autossh"], File["/etc/init.d/tunnel-autossh"]],
+ }
+}