Rename cron.d entry to make it clear it comes from puppet
[mirror/dsa-puppet.git] / modules / puppetmaster / manifests / init.pp
index f16e715..08b400f 100644 (file)
@@ -6,6 +6,9 @@ class puppetmaster {
        file { '/etc/puppet/hiera.yaml':
                source => 'puppet:///modules/puppetmaster/hiera.yaml'
        }
+       file { '/etc/puppet/puppetdb.conf':
+               source => 'puppet:///modules/puppetmaster/puppetdb.conf'
+       }
 
        @ferm::rule { 'dsa-puppet':
                description     => 'Allow puppet access',
@@ -23,4 +26,15 @@ class puppetmaster {
        concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
        }
        Concat::Fragment <<| tag == "onionbalance-services.yaml" |>>
+
+       file { '/etc/cron.d/puppet-update-fastly-ips':
+               source => 'puppet:///modules/puppetmaster/update-fastly-ips.cron'
+       }
+       file { '/etc/cron.d/update-fastly-ips':
+               ensure => absent,
+       }
+       file { '/usr/local/bin/update-fastly-ips':
+               source => 'puppet:///modules/puppetmaster/update-fastly-ips.sh',
+               mode   => '0555',
+       }
 }