mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
apt-get upgrade module [as yet unused, needed for patching wheezy]
This commit is contained in:
1
modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp
Normal file
1
modules/utilities/unix/update/apt_upgrade/apt_upgrade.pp
Normal file
@@ -0,0 +1 @@
|
||||
include apt_upgrade::apt
|
||||
18
modules/utilities/unix/update/apt_upgrade/manifests/apt.pp
Normal file
18
modules/utilities/unix/update/apt_upgrade/manifests/apt.pp
Normal 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user