aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/modules/basic_software/manifests/init.pp
blob: 583edbbca99b815fd8542717a3ae64c6288df740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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':}
  }

  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':}
  }
}