source: trunk/puppet/modules/puppet-autossh/manifests/init.pp @ 499

Last change on this file since 499 was 499, checked in by sebas, 14 years ago

nuevo modulo para hacer tuneles ssh

File size: 571 bytes
Line 
1class autossh {
2  package { "autossh":
3    ensure => installed,
4  }
5
6  file {
7    "/etc/init.d/tunnel-autossh":
8      owner   => root,
9      group   => root,
10      mode    => 755,
11      require => Package["autossh"],
12      content => template("autossh/tunnel-autossh.erb");
13  }
14
15 exec { "autossh_update_rcd":
16      command => "update-rc.d tunnel-autossh start 18 2 3 4 5 . stop 81 0 1 6 .",
17      creates => "/etc/rc2.d/S18tunnel-autossh",
18      path => "/bin:/sbin:/usr/sbin:/usr/bin",
19      require => [ Package["autossh"], File["/etc/init.d/tunnel-autossh"]],
20   }
21}
Note: See TracBrowser for help on using the repository browser.