X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=environments%2Fproduction%2Fmanifests%2Fsite.pp;h=34e30d095baaffd6c2baee49c3bc0183f8567285;hb=f341fae5472513454a68fe882b8800857192261d;hp=4cd8d32793d26e3dd88a4014e47cfbb84c41db94;hpb=b40c49a55b6669eba8858828fc8d5441b8d358c2;p=infra.git diff --git a/environments/production/manifests/site.pp b/environments/production/manifests/site.pp index 4cd8d32..34e30d0 100644 --- a/environments/production/manifests/site.pp +++ b/environments/production/manifests/site.pp @@ -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'] } @@ -25,13 +31,14 @@ if $signerLocation == 'self' { require => Exec['apt_update'] } $cass_ip=''; - file {'/etc/systemd/system/tcpserial.service': + systemd::unit_file {'tcpserial.service': ensure => 'file', content => epp('gigi/tcpserial'), require => Package['tcpserial'] }-> service{'tcpserial.service': ensure => 'running', + enable => true, provider => 'systemd', before => Service['cassiopeia-signer.service'] } @@ -92,15 +99,16 @@ if $signerLocation == 'self' { content => epp('gigi/cassiopeia-client-conf'), } - file {'/etc/systemd/system/cassiopeia-signer.service': + systemd::unit_file {'cassiopeia-signer.service': ensure => 'file', source => 'puppet:///modules/gigi/cassiopeia-signer.service', }-> 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, } }