summaryrefslogtreecommitdiff
path: root/puppet/modules/site_sshd/manifests/mosh.pp
blob: 5282d239c6f4b563017125a485a80caa534eb8a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# setup mosh on server
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  => Exec['shorewall_check'],
    require => Package['shorewall'];
  }

  shorewall::rule { 'net2fw-mosh':
    ensure      => $ensure,
    source      => 'net',
    destination => '$FW',
    action      => 'mosh(ACCEPT)',
    order       => 200;
  }
}