diff options
author | micah <micah@leap.se> | 2013-07-01 01:08:13 +0200 |
---|---|---|
committer | micah <micah@leap.se> | 2013-07-01 01:08:13 +0200 |
commit | 35f9bbda60c38c3b16cd1340b876ee09dd2f7e1d (patch) | |
tree | 04622b7127da0f32185551be2f6b93f65e1a9012 /puppet/modules/site_sshd/manifests/mosh.pp | |
parent | 4a102a1e9c856cb4df787f0aaa80747d4cdaa0c7 (diff) | |
parent | 6c34c73f7e4c5203321547b699c6eaba9de8e2fe (diff) |
Merge branch 'feature/authorized_keys' of /home/git/repositories/micah/leap_platform into develop
Diffstat (limited to 'puppet/modules/site_sshd/manifests/mosh.pp')
-rw-r--r-- | puppet/modules/site_sshd/manifests/mosh.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/modules/site_sshd/manifests/mosh.pp b/puppet/modules/site_sshd/manifests/mosh.pp new file mode 100644 index 00000000..49f56ca0 --- /dev/null +++ b/puppet/modules/site_sshd/manifests/mosh.pp @@ -0,0 +1,21 @@ +class site_sshd::mosh ( $ensure = present, $ports = '60000-61000' ) { + + package { 'mosh': + ensure => $ensure + } + + file { '/etc/shorewall/macro.mosh': + ensure => $ensure, + content => "PARAM - - udp ${ports}", + notify => Service['shorewall'], + require => Package['shorewall']; + } + + shorewall::rule { 'net2fw-mosh': + ensure => $ensure, + source => 'net', + destination => '$FW', + action => 'mosh(ACCEPT)', + order => 200; + } +} |