file {
"/etc/apt/sources.list.d/buildd.list":
source => "puppet:///files/etc/apt/sources.list.d/buildd.list",
- require => Package["apt-transport-https"]
+ require => Package["apt-transport-https"],
+ notify => Exec["apt-get update"];
;
"/etc/apt/trusted-keys.d/buildd.debian.org.asc":
"/etc/apt/preferences":
source => "puppet:///files/etc/apt/preferences";
"/etc/apt/sources.list.d/backports.org.list":
- source => "puppet:///files/etc/apt/sources.list.d/backports.org.list";
+ source => "puppet:///files/etc/apt/sources.list.d/backports.org.list",
+ notify => Exec["apt-get update"];
"/etc/apt/sources.list.d/debian.org.list":
- source => "puppet:///files/etc/apt/sources.list.d/debian.org.list";
+ source => "puppet:///files/etc/apt/sources.list.d/debian.org.list",
+ notify => Exec["apt-get update"];
"/etc/apt/sources.list.d/security.list":
- source => "puppet:///files/etc/apt/sources.list.d/security.list";
+ source => "puppet:///files/etc/apt/sources.list.d/security.list",
+ notify => Exec["apt-get update"];
"/etc/apt/sources.list.d/volatile.list":
- source => "puppet:///files/etc/apt/sources.list.d/volatile.list";
+ source => "puppet:///files/etc/apt/sources.list.d/volatile.list",
+ notify => Exec["apt-get update"];
"/etc/apt/apt.conf.d/local-recommends":
source => "puppet:///files/etc/apt/apt.conf.d/local-recommends";
"/etc/apt/apt.conf.d/local-pdiffs":
exec { "dpkg-reconfigure tzdata -pcritical -fnoninteractive":
path => "/usr/bin:/usr/sbin:/bin:/sbin",
refreshonly => true,
- }
+ }
+ exec { "apt-get update":
+ command => 'apt-get update',
+ path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+ refreshonly => true
+ }
}
class debian-proliant inherits debian-org {
}
file {
"/etc/apt/sources.list.d/debian.restricted.list":
- source => "puppet:///files/etc/apt/sources.list.d/debian.restricted.list";
+ source => "puppet:///files/etc/apt/sources.list.d/debian.restricted.list",
+ notify => Exec["apt-get update"];
}
}