]> WPIA git - infra.git/commitdiff
upd: launch apt-update at least daily
authorFelix Dörre <felix@dogcraft.de>
Sat, 15 Apr 2017 17:43:48 +0000 (19:43 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sun, 16 Apr 2017 20:33:36 +0000 (22:33 +0200)
Change-Id: I2489b5b41159b962e73f0439740ce8ec7b5c213d

environments/production/manifests/gigi.pp
environments/production/manifests/quiz.pp
environments/production/manifests/site.pp

index 14f175b600d7ad96f27ec87d72b7f1ae530cd002..57c602f04854317805fdf5b3bdd5e12fefc10a1f 100644 (file)
@@ -19,7 +19,6 @@ node gigi {
     unless => "/usr/bin/debconf-get-selections | /bin/grep -F '$gigi_translation' | /bin/grep -F '$gigi_pkg/fetch-locales'"
   }
 
-  class{'apt':}
   apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94':
     source => 'http://deb.dogcraft.de/signer.gpg',
     ensure => 'present'
index 1cae709fe69e834446d7365efe6492e625537bdd..70577ff640395c20f5ca0e4f28a755a139ec2004 100644 (file)
@@ -1,5 +1,4 @@
 define teracara_quiz (){
-  class{'apt':}
   apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94':
     source => 'http://deb.dogcraft.de/signer.gpg',
     ensure => 'present'
index 92e033744c092caa36dc04838f5851e8b8a6b7d8..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'