]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Ship etc/apt/preferences with puppet
authorPeter Palfrader <peter@palfrader.org>
Sun, 8 Mar 2009 00:56:54 +0000 (01:56 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 8 Mar 2009 00:56:54 +0000 (01:56 +0100)
files/etc/apt/preferences [new file with mode: 0644]
modules/debian-org/manifests/init.pp

diff --git a/files/etc/apt/preferences b/files/etc/apt/preferences
new file mode 100644 (file)
index 0000000..dc11ad8
--- /dev/null
@@ -0,0 +1,7 @@
+Explanation:
+Explanation: THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+Explanation: USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+Explanation:
+Package: *
+Pin: release o=Backports.org archive
+Pin-Priority: 200
index 5806ab1899d680a147102ef521377f32fee72f71..b1a2d00b15dc3d1499621eb2605ba5daf52f862a 100644 (file)
@@ -22,6 +22,12 @@ class debian-org {
              "dsa-nagios-nrpe-config": ensure => latest;
    }
    file {
+      "/etc/apt/preferences":
+             owner   => root,
+             group   => root,
+             mode    => 444,
+             ensure  => file,
+             source => "puppet:///files/etc/apt/preferences";
       "/etc/apt/sources.list.d/backports.org.list":
              owner   => root,
              group   => root,