diff --git a/site-modules/profile/manifests/smartmontools.pp b/site-modules/profile/manifests/smartmontools.pp new file mode 100644 index 00000000..e3eeff09 --- /dev/null +++ b/site-modules/profile/manifests/smartmontools.pp @@ -0,0 +1,9 @@ +# Install smart monitoring tools on physical machines +class profile::smartmontools { + $packages = ["smartmontools"] + + package {$packages: + ensure => $::virtual ? { 'physical' => 'installed', default => 'purged' } + } + +} diff --git a/site-modules/role/manifests/swh_base.pp b/site-modules/role/manifests/swh_base.pp index c495961c..7be2b7f6 100644 --- a/site-modules/role/manifests/swh_base.pp +++ b/site-modules/role/manifests/swh_base.pp @@ -1,21 +1,22 @@ class role::swh_base { include profile::static_hostnames include profile::base include profile::ssh::server include profile::unbound include profile::systemd_journal include profile::resolv_conf include profile::puppet include profile::prometheus::node include profile::prometheus::statsd include profile::icinga2 include profile::rsyslog if $::virtual == 'physical' { include profile::megacli } + include profile::smartmontools include profile::network include profile::swh }