aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp33
1 files changed, 10 insertions, 23 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b5be91f..2ae691f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -85,27 +85,28 @@ class apt {
'' => template( "apt/$operatingsystem/sources.list.erb"),
default => $custom_sources_list
},
- require => Package['lsb'];
+ require => Package['lsb'],
+ notify => Exec['refresh_apt'],
}
apt_conf { "02show_upgraded":
- source => [ "puppet:///modules/site-apt/${fqdn}/02show_upgraded",
- "puppet:///modules/site-apt/02show_upgraded",
+ source => [ "puppet:///modules/site_apt/${fqdn}/02show_upgraded",
+ "puppet:///modules/site_apt/02show_upgraded",
"puppet:///modules/apt/02show_upgraded" ]
}
if ( $virtual == "vserver" ) {
apt_conf { "03clean_vserver":
- source => [ "puppet:///modules/site-apt/${fqdn}/03clean_vserver",
- "puppet:///modules/site-apt/03clean_vserver",
+ source => [ "puppet:///modules/site_apt/${fqdn}/03clean_vserver",
+ "puppet:///modules/site_apt/03clean_vserver",
"puppet:///modules/apt/03clean_vserver" ],
alias => "03clean";
}
}
else {
apt_conf { "03clean":
- source => [ "puppet:///modules/site-apt/${fqdn}/03clean",
- "puppet:///modules/site-apt/03clean",
+ source => [ "puppet:///modules/site_apt/${fqdn}/03clean",
+ "puppet:///modules/site_apt/03clean",
"puppet:///modules/apt/03clean" ]
}
}
@@ -128,21 +129,7 @@ class apt {
require => [ Apt_conf['02show_upgraded'], Apt_conf['03clean'] ];
}
- # watch .d directories and ensure they are present
- file { "/etc/apt/apt.conf.d": ensure => directory, checksum => mtime; }
- file { "/etc/apt/sources.list.d":
- ensure => directory,
- checksum => mtime,
- notify => Exec['refresh_apt'],
- }
-
- exec {
- # "&& sleep 1" is workaround for older(?) clients
- 'refresh_apt':
- command => '/usr/bin/apt-get update && sleep 1',
- refreshonly => true,
- subscribe => [ File['/etc/apt/apt.conf.d'], Config_file['/etc/apt/sources.list'] ];
- }
+ include apt::dot_d_directories
## This package should really always be current
package { "debian-archive-keyring": ensure => latest }
@@ -167,7 +154,7 @@ class apt {
}
if $custom_preferences != false {
Exec["custom_keys"] {
- before => Concatenated_file[apt_config],
+ before => Concat[apt_config],
}
}
}