apt-get upgrade module [as yet unused, needed for patching wheezy]

This commit is contained in:
ts
2019-01-21 14:44:48 +00:00
parent cc73c3c48d
commit 7bb90546fb
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1 @@
include apt_upgrade::apt

View File

@@ -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,
}
}
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>Unix upgrade</name>
<author>Thomas Shaw</author>
<module_license>Apache v2</module_license>
<description>A module to apt-get upgrade</description>
<type>upgrade</type>
<platform>linux</platform>
<requires>
<type>update</type>
</requires>
</utility>