From e5677f2515f548329c71d158c41d3cf09ddeead8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Sat, 15 Apr 2017 19:43:48 +0200 Subject: [PATCH] upd: launch apt-update at least daily Change-Id: I2489b5b41159b962e73f0439740ce8ec7b5c213d --- environments/production/manifests/gigi.pp | 1 - environments/production/manifests/quiz.pp | 1 - environments/production/manifests/site.pp | 8 +++++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/environments/production/manifests/gigi.pp b/environments/production/manifests/gigi.pp index 14f175b..57c602f 100644 --- a/environments/production/manifests/gigi.pp +++ b/environments/production/manifests/gigi.pp @@ -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' diff --git a/environments/production/manifests/quiz.pp b/environments/production/manifests/quiz.pp index 1cae709..70577ff 100644 --- a/environments/production/manifests/quiz.pp +++ b/environments/production/manifests/quiz.pp @@ -1,5 +1,4 @@ define teracara_quiz (){ - class{'apt':} apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94': source => 'http://deb.dogcraft.de/signer.gpg', ensure => 'present' diff --git a/environments/production/manifests/site.pp b/environments/production/manifests/site.pp index 92e0337..282d200 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' -- 2.39.2