diff options
Diffstat (limited to 'grid5000/steps/data/setup/puppet/modules/env/manifests/std/install_g5kchecks.pp')
-rw-r--r-- | grid5000/steps/data/setup/puppet/modules/env/manifests/std/install_g5kchecks.pp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/grid5000/steps/data/setup/puppet/modules/env/manifests/std/install_g5kchecks.pp b/grid5000/steps/data/setup/puppet/modules/env/manifests/std/install_g5kchecks.pp new file mode 100644 index 0000000..871045f --- /dev/null +++ b/grid5000/steps/data/setup/puppet/modules/env/manifests/std/install_g5kchecks.pp @@ -0,0 +1,35 @@ +class env::std::install_g5kchecks { + + include 'env::std::ipmitool' # ipmitool is required by g5k-checks + if $env::deb_arch == 'amd64' { + include 'env::std::dell' # dell tools are required by g5k-checks + } + + case $operatingsystem { + + 'Debian','Ubuntu': { + + require env::commonpackages::rake + require env::commonpackages::rubyrspec + + env::common::g5kpackages { + 'g5k-checks': + ensure => $::env::common::software_versions::g5k_checks, + release => "${::lsbdistcodename}"; + } + + file { + '/etc/g5k-checks.conf': + ensure => present, + owner => root, + group => root, + mode => '0644', + source => "puppet:///modules/env/std/g5kchecks/g5k-checks.conf", + require => Package["g5k-checks"]; + } + } + default: { + err "${operatingsystem} not supported." + } + } +} |