From: Stephen Gran Date: Tue, 24 Feb 2009 16:42:53 +0000 (+0000) Subject: Add some apt autoconfig magic X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=24431491f819f2bf1533bbb219f2c1ca489ea9f7;p=mirror%2Fdsa-puppet.git Add some apt autoconfig magic Signed-off-by: Stephen Gran --- diff --git a/files/etc/apt/apt.conf.d/local-recommends b/files/etc/apt/apt.conf.d/local-recommends new file mode 100644 index 000000000..b2050b4ab --- /dev/null +++ b/files/etc/apt/apt.conf.d/local-recommends @@ -0,0 +1 @@ +APT::Install-Recommends 0; diff --git a/files/etc/apt/sources.list.d/backports.org.list b/files/etc/apt/sources.list.d/backports.org.list new file mode 100644 index 000000000..f89a95f24 --- /dev/null +++ b/files/etc/apt/sources.list.d/backports.org.list @@ -0,0 +1 @@ +deb http://debian.sil.at/backports.org/ lenny-backports main diff --git a/files/etc/apt/sources.list.d/debian.org.list b/files/etc/apt/sources.list.d/debian.org.list new file mode 100644 index 000000000..d9c9d2ecd --- /dev/null +++ b/files/etc/apt/sources.list.d/debian.org.list @@ -0,0 +1,2 @@ +deb http://db.debian.org/debian-admin lenny main +deb http://db.debian.org/debian-admin lenny-restricted non-free diff --git a/files/etc/apt/sources.list.d/security.list b/files/etc/apt/sources.list.d/security.list new file mode 100644 index 000000000..de5571d89 --- /dev/null +++ b/files/etc/apt/sources.list.d/security.list @@ -0,0 +1 @@ +deb http://security.us.debian.org/ lenny/updates main diff --git a/files/etc/apt/sources.list.d/volatile.list b/files/etc/apt/sources.list.d/volatile.list new file mode 100644 index 000000000..b0c140c12 --- /dev/null +++ b/files/etc/apt/sources.list.d/volatile.list @@ -0,0 +1 @@ +deb http://volatile.debian.org/debian-volatile lenny/volatile main diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 0c5c294e8..4c535c962 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -18,5 +18,22 @@ class debian-org { "mtr-tiny": ensure => latest; "nload": ensure => latest; } + file { + "/etc/apt/sources.list.d/backports.org.list": + source => "puppet:///files/etc/apt/sources.list.d/backports.org.list"; + + "/etc/apt/sources.list.d/debian.org.list": + source => "puppet:///files/etc/apt/sources.list.d/debian.org.list"; + + "/etc/apt/sources.list.d/security.list": + source => "puppet:///files/etc/apt/sources.list.d/security.list"; + + "/etc/apt/sources.list.d/volatile.list": + source => "puppet:///files/etc/apt/sources.list.d/volatile.list"; + "/etc/apt/apt.conf.d/local-recommends": + source => "puppet:///files/etc/apt/apt.conf.d/local-recommends"; + } } + +