]> WPIA git - infra.git/blobdiff - environments/production/manifests/site.pp
upd: launch apt-update at least daily
[infra.git] / environments / production / manifests / site.pp
index 4cd8d32793d26e3dd88a4014e47cfbb84c41db94..282d200f8ad5e1767e136495d98b758b86c189ee 100644 (file)
@@ -1,3 +1,10 @@
+class { 'apt':
+  update => {
+    frequency => 'daily',
+  },
+}
+Exec["apt_update"] -> Package <| |>
+
 node  cassiopeia {
   include container::contained
 if $signerLocation == 'self' {
@@ -5,7 +12,6 @@ if $signerLocation == 'self' {
 } else {
   include container::ssh
 }
-  class{'apt':}
   apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94':
     source => 'http://deb.dogcraft.de/signer.gpg',
     ensure => 'present'
@@ -15,7 +21,7 @@ if $signerLocation == 'self' {
     ensure => 'present',
     notify => Exec['apt_update']
   } ->
-  package { 'cacert-cassiopeia-signer':
+  package { 'wpia-cassiopeia-signer':
     ensure => 'installed',
     require => Exec['apt_update']
   }
@@ -32,6 +38,7 @@ if $signerLocation == 'self' {
   }->
   service{'tcpserial.service':
     ensure => 'running',
+    enable => true,
     provider => 'systemd',
     before => Service['cassiopeia-signer.service']
   }
@@ -98,9 +105,10 @@ if $signerLocation == 'self' {
   }->
   service{'cassiopeia-signer.service':
     ensure => 'running',
+    enable => true,
     provider => 'systemd',
     require => [Exec['/usr/bin/openssl dhparam -out dh_param.pem 2048'],
-                Package['cacert-cassiopeia-signer'],
+                Package['wpia-cassiopeia-signer'],
                 File['/var/lib/cassiopeia/logs'],
                 File['/var/lib/cassiopeia/profiles'],
                 File['/var/lib/cassiopeia/ca'],
@@ -130,6 +138,7 @@ node exim{
     notify => Service['exim4']
   }
   service{ 'exim4':
-    ensure => 'running'
+    ensure => 'running',
+    enable => true,
   }
 }