diff options
author | Varac <varacanero@zeromail.org> | 2009-12-07 01:46:52 +0100 |
---|---|---|
committer | Varac <varacanero@zeromail.org> | 2009-12-07 01:46:52 +0100 |
commit | ad99d7611f716eada0620417f7d62c095ef38fd1 (patch) | |
tree | f90ee74f719c127758030b65c7dc60c57bbc9d02 | |
parent | 70cae2f75b1938ac26a75597a8e75dc3e7d327b7 (diff) | |
download | puppet-backupninja-ad99d7611f716eada0620417f7d62c095ef38fd1.tar.gz puppet-backupninja-ad99d7611f716eada0620417f7d62c095ef38fd1.tar.bz2 |
Added class backupninja::client::sys to install neccessary files for backupninja::sys on debian and ubuntu.
-rw-r--r-- | manifests/client.pp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index c21e669..acff367 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -127,4 +127,23 @@ class backupninja::client::duplicity inherits backupninja::client::defaults { } } } - + +class backupninja::client::sys inherits backupninja::client::defaults { + case $operatingsystem { + debian,ubuntu: { + if !defined(Package["debconf-utils"]) { + if $debconf_utils_ensure_version == '' { $debconf_utils_ensure_version = 'installed' } + package { 'debconf-utils': + ensure => $debconf_utils_ensure_version, + } + } + if !defined(Package["hwinfo"]) { + if $hwinfo_ensure_version == '' { $hwinfo_ensure_version = 'installed' } + package { 'hwinfo': + ensure => $hwinfo_ensure_version, + } + } + } + default: {} + } +} |