X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=environments%2Fproduction%2Fmanifests%2Fsite.pp;h=34e30d095baaffd6c2baee49c3bc0183f8567285;hb=86a085d6ae79d35d3d8f0ea780d04284d0727db3;hp=92e033744c092caa36dc04838f5851e8b8a6b7d8;hpb=72f29339c72bb730eb124091f3310616bd78fbce;p=infra.git diff --git a/environments/production/manifests/site.pp b/environments/production/manifests/site.pp index 92e0337..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' @@ -25,7 +31,7 @@ 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'] @@ -93,7 +99,7 @@ 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', }->