summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-16 13:02:28 +0100
committerintrigeri <intrigeri@boum.org>2010-12-16 13:02:28 +0100
commit4765a02564ddadeeafcb87fdce7d077ec6972c02 (patch)
tree2f4ab733a1849fe355c71df3da675465c55b104e
parentc0377ca7377ed9ab19e319996e7ec5ad3c179070 (diff)
New class: apt::dist_upgrade.
-rw-r--r--README14
-rw-r--r--manifests/dist_upgrade.pp11
2 files changed, 25 insertions, 0 deletions
diff --git a/README b/README
index 99c6354..8503e73 100644
--- a/README
+++ b/README
@@ -204,6 +204,20 @@ emails when upgrades are performed.
See apt::cron::download above if you need to run cron-apt more often
than once a day.
+apt::dist_upgrade
+-----------------
+
+This class provides the Exec['apt_dist-upgrade'] resource that
+dist-upgrade's the system.
+
+This exec is set as refreshonly so including this class does not
+trigger any action per-se: other resources may notify it, other
+classes may inherit from this one and add to its subscription list
+using the plusignment ('+>') operator.
+
+When this class is included the APT indexes are updated on every
+Puppet run due to the author's lack of Puppet wizardry.
+
apt::dselect
------------
diff --git a/manifests/dist_upgrade.pp b/manifests/dist_upgrade.pp
new file mode 100644
index 0000000..9e26769
--- /dev/null
+++ b/manifests/dist_upgrade.pp
@@ -0,0 +1,11 @@
+class apt::dist_upgrade {
+
+ include apt::update
+
+ exec { 'apt_dist-upgrade':
+ command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
+ refreshonly => true,
+ require => Exec['apt_updated'],
+ }
+
+}