43432af7b188f95b7c0f70ccdfa2a9637ad05b18
[mirror/dsa-puppet.git] / modules / puppetmaster / manifests / init.pp
1 class puppetmaster {
2
3         include site::params
4
5         package { 'puppetmaster':
6                 ensure => $site::params::puppetversion,
7         }
8         file { '/etc/puppet/hiera.yaml':
9                 source => 'puppet:///modules/puppetmaster/hiera.yaml'
10         }
11
12         @ferm::rule { 'dsa-puppet':
13                 description     => 'Allow puppet access',
14                 rule            => '&SERVICE_RANGE(tcp, 8140, $HOST_DEBIAN_V4)'
15         }
16         @ferm::rule { 'dsa-puppet-v6':
17                 domain          => 'ip6',
18                 description     => 'Allow puppet access',
19                 rule            => '&SERVICE_RANGE(tcp, 8140, $HOST_DEBIAN_V6)'
20         }
21 }