diff options
Diffstat (limited to 'personal_infra/puppet/modules/basic_software')
| -rw-r--r-- | personal_infra/puppet/modules/basic_software/manifests/init.pp | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/personal_infra/puppet/modules/basic_software/manifests/init.pp b/personal_infra/puppet/modules/basic_software/manifests/init.pp index 2452f982..54b5a3ed 100644 --- a/personal_infra/puppet/modules/basic_software/manifests/init.pp +++ b/personal_infra/puppet/modules/basic_software/manifests/init.pp @@ -1,5 +1,5 @@ class basic_software { - package {['less', 'mlocate', 'traceroute', 'nmap', 'tree', 'tar', 'screen', 'git', 'net-tools', 'pipx', 'rsync', 'bash-completion', 'moreutils']:} + package {['less', 'traceroute', 'nmap', 'tree', 'tar', 'screen', 'git', 'net-tools', 'pipx', 'rsync', 'bash-completion', 'moreutils']:} if($facts['os']['family'] == 'RedHat') { package {'which':} @@ -13,17 +13,22 @@ class basic_software { } if ($facts['os']['family'] == 'Debian') { - file {'/etc/apt/preferences.d/90_emacs': - content => @(EOT) - Package: src:emacs - Pin: release n=bookworm-backports - Pin-Priority: 990 - | EOT - , - } - ~> - Exec["/usr/bin/apt update"] - -> package {'emacs-nox':} + if ($facts['os']['release']['major'] == 12) { + file {'/etc/apt/preferences.d/90_emacs': + content => @(EOT) + Package: src:emacs + Pin: release n=bookworm-backports + Pin-Priority: 990 + | EOT + , + } + ~> + Exec["/usr/bin/apt update"] + -> + Package['emacs-nox'] + + package {'mlocate':} + } } } |
