From 7bb90546fb95d56e894541aa93d95bae638e3d37 Mon Sep 17 00:00:00 2001 From: ts Date: Mon, 21 Jan 2019 14:44:48 +0000 Subject: [PATCH] apt-get upgrade module [as yet unused, needed for patching wheezy] --- .../unix/update/apt_upgrade/apt_upgrade.pp | 1 + .../unix/update/apt_upgrade/manifests/apt.pp | 18 ++++++++++++++++++ .../update/apt_upgrade/secgen_metadata.xml | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp create mode 100644 modules/utilities/unix/update/apt_upgrade/manifests/apt.pp create mode 100644 modules/utilities/unix/update/apt_upgrade/secgen_metadata.xml diff --git a/modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp b/modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp new file mode 100644 index 000000000..f770c4ee3 --- /dev/null +++ b/modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp @@ -0,0 +1 @@ +include apt_upgrade::apt \ No newline at end of file diff --git a/modules/utilities/unix/update/apt_upgrade/manifests/apt.pp b/modules/utilities/unix/update/apt_upgrade/manifests/apt.pp new file mode 100644 index 000000000..654d0c6f0 --- /dev/null +++ b/modules/utilities/unix/update/apt_upgrade/manifests/apt.pp @@ -0,0 +1,18 @@ +class apt_upgrade::apt { + case $operatingsystem { + 'Debian': { + exec { 'update': + command => "/usr/bin/apt-get upgrade", + tries => 5, + try_sleep => 30, + } + } + 'Ubuntu': { + exec { 'update': + command => "/usr/bin/apt-get upgrade", + tries => 5, + try_sleep => 30, + } + } + } +} diff --git a/modules/utilities/unix/update/apt_upgrade/secgen_metadata.xml b/modules/utilities/unix/update/apt_upgrade/secgen_metadata.xml new file mode 100644 index 000000000..583ef9a14 --- /dev/null +++ b/modules/utilities/unix/update/apt_upgrade/secgen_metadata.xml @@ -0,0 +1,18 @@ + + + + Unix upgrade + Thomas Shaw + Apache v2 + A module to apt-get upgrade + + upgrade + linux + + + update + + + \ No newline at end of file