1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
class basic_software {
package {['less', 'mlocate', 'traceroute', 'nmap', 'tree', 'tar', 'screen', 'git', 'net-tools', 'pipx', 'rsync', 'bash-completion', 'moreutils']:}
if($facts['os']['family'] == 'RedHat') {
package {'which':}
copr {'emacs-30':
user => 'mlampe',
dist => 'epel-9',
}
->
package {'emacs-nw':}
}
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':}
}
}
|