diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-16 17:36:40 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-16 17:36:40 +0100 |
commit | 4317fe2a6440f03076dc700ef3532ec178362c37 (patch) | |
tree | 7217d55e0aa1652d8a3e53c438400bc6b0aee3ad | |
parent | Move zone records to proper place in hiera. (diff) | |
download | profiles-4317fe2a6440f03076dc700ef3532ec178362c37.tar.gz profiles-4317fe2a6440f03076dc700ef3532ec178362c37.tar.xz |
Some standard packages (mostly redhat).
-rw-r--r-- | manifests/common.pp | 5 | ||||
-rw-r--r-- | manifests/common/redhat.pp | 9 | ||||
-rw-r--r-- | manifests/nspawned.pp | 4 | ||||
-rw-r--r-- | manifests/puppetagent.pp | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/manifests/common.pp b/manifests/common.pp index 1c9af0f..2393f31 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -56,6 +56,11 @@ class profiles::common ( include ::profiles::nspawned } + ensure_packages([ + 'tree', + 'lsof', + ]) + package { 'nano': ensure => absent, } diff --git a/manifests/common/redhat.pp b/manifests/common/redhat.pp new file mode 100644 index 0000000..cd66ff1 --- /dev/null +++ b/manifests/common/redhat.pp @@ -0,0 +1,9 @@ +class profiles::common::redhat { + ensure_packages([ + 'hostname', + 'iproute', + 'iputils', + 'python3', + 'wget', + ]) +} diff --git a/manifests/nspawned.pp b/manifests/nspawned.pp index 47345e0..37e38f3 100644 --- a/manifests/nspawned.pp +++ b/manifests/nspawned.pp @@ -4,6 +4,10 @@ class profiles::nspawned { 'Debian': { ensure_packages(['dbus', 'systemd-container']) } + 'RedHat': { + # Only tested on rocky + ensure_packages(['dbus', 'systemd-container']) + } 'Arch': { # Technicly pulled in through base -> systemd -> dbus, but this # is explicit. diff --git a/manifests/puppetagent.pp b/manifests/puppetagent.pp index 56e76c9..0d568fa 100644 --- a/manifests/puppetagent.pp +++ b/manifests/puppetagent.pp @@ -5,6 +5,12 @@ class profiles::puppetagent ( fail('Can only either be puppetagent or puppetserver (which is also a puppetagent), not both') } + case $facts['os']['family'] { + 'RedHat': { + ensure_packages(['cronie']) + } + } + class { 'puppet': server => false, agent => true, |