summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-12-07 12:20:14 -0500
committerMicah Anderson <micah@riseup.net>2010-12-07 12:20:14 -0500
commit2ee70ab5e08eadfe750b5b7131b258270cbca402 (patch)
tree967b72f7ff9d94386c7861d7a50993f88d86baac /files
parent6596641bb12e3d94dbf707759b042bc7b3b476ae (diff)
Set dselect DSelect::Clean to 'pre-auto' by default for hosts that are vservers.
Before you only had the choice of setting a 03clean apt configuration for either all hosts, or every single host. Setting it to have the recommended settings for vservers for all hosts meant that you were setting it for non-vservers as well as vservers. The other option you had was to set it per host. This was a bit annoying if you have any more than one vserver because you would need to create a 03clean for every single vserver guest. This change auto-detects if the node is a vserver, and if it is it automatically installs the 03clean_vserver file, with the recommended DSelect::Clean settings, and allows you to override this for all of your vservers, or for specific hosts.
Diffstat (limited to 'files')
-rw-r--r--files/03clean_vserver4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/03clean_vserver b/files/03clean_vserver
new file mode 100644
index 0000000..6bb84e5
--- /dev/null
+++ b/files/03clean_vserver
@@ -0,0 +1,4 @@
+// This file is managed by Puppet
+// all local modifications will be overwritten
+
+DSelect::Clean pre-auto;