2021-04-02 16:57:13 +00:00
|
|
|
from bundlewrap.exceptions import BundleError
|
|
|
|
|
|
|
|
if not node.os == 'arch':
|
|
|
|
raise BundleError(f'{node.name}: bundle:pacman requires arch linux')
|
2021-02-18 13:24:57 +00:00
|
|
|
|
2021-07-30 12:27:30 +00:00
|
|
|
files = {
|
|
|
|
'/etc/pacman.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
},
|
2022-02-13 08:43:52 +00:00
|
|
|
'/etc/upgrade-and-reboot.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
},
|
2022-03-13 07:41:22 +00:00
|
|
|
'/etc/security/faillock.conf': {},
|
2022-02-13 08:43:52 +00:00
|
|
|
'/usr/local/sbin/upgrade-and-reboot': {
|
|
|
|
'mode': '0700',
|
|
|
|
},
|
|
|
|
'/usr/local/sbin/do-unattended-upgrades': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'mode': '0700',
|
|
|
|
'context': {
|
|
|
|
'restart_triggers': node.metadata.get('pacman/restart_triggers', {}),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'/usr/local/share/icinga/plugins/check_unattended_upgrades': {
|
|
|
|
'mode': '0755',
|
|
|
|
},
|
2021-07-30 12:27:30 +00:00
|
|
|
}
|
|
|
|
|
2022-02-13 07:55:26 +00:00
|
|
|
svc_systemd['paccache.timer'] = {
|
|
|
|
'needs': {
|
|
|
|
'pkg_pacman:pacman-contrib',
|
|
|
|
},
|
|
|
|
}
|
2021-02-18 13:24:57 +00:00
|
|
|
|
|
|
|
pkg_pacman = {
|
2021-05-23 10:24:00 +00:00
|
|
|
'at': {},
|
|
|
|
'autoconf': {},
|
|
|
|
'automake': {},
|
2024-04-09 04:09:03 +00:00
|
|
|
'bind': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'binutils': {},
|
|
|
|
'bison': {},
|
|
|
|
'bzip2': {},
|
|
|
|
'curl': {},
|
2021-02-18 13:24:57 +00:00
|
|
|
'dialog': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'diffutils': {},
|
|
|
|
'fakeroot': {},
|
|
|
|
'file': {},
|
|
|
|
'findutils': {},
|
|
|
|
'flex': {},
|
|
|
|
'fwupd': {},
|
|
|
|
'gawk': {},
|
|
|
|
'gcc': {},
|
|
|
|
'gettext': {},
|
|
|
|
'git': {},
|
|
|
|
'gnu-netcat': {},
|
|
|
|
'grep': {},
|
|
|
|
'groff': {},
|
|
|
|
'gzip': {},
|
2021-06-01 14:53:14 +00:00
|
|
|
'htop': {},
|
2022-03-24 17:14:50 +00:00
|
|
|
'jq': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'ldns': {},
|
|
|
|
'less': {},
|
|
|
|
'libtool': {},
|
|
|
|
'logrotate': {},
|
|
|
|
'lsof': {},
|
|
|
|
'm4': {},
|
|
|
|
'mailutils': {},
|
|
|
|
'make': {},
|
2022-02-13 08:23:30 +00:00
|
|
|
'man-db': {},
|
|
|
|
'man-pages': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'moreutils': {},
|
|
|
|
'mtr': {},
|
|
|
|
'ncdu': {},
|
|
|
|
'nmap': {},
|
2022-02-13 07:55:26 +00:00
|
|
|
'pacman-contrib': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'patch': {},
|
|
|
|
'pkgconf': {},
|
|
|
|
'python': {},
|
|
|
|
'python-setuptools': {
|
|
|
|
'needed_by': {
|
|
|
|
'pkg_pip:',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'python-pip': {
|
|
|
|
'needed_by': {
|
|
|
|
'pkg_pip:',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'python-virtualenv': {},
|
|
|
|
'rsync': {},
|
2021-06-30 04:22:06 +00:00
|
|
|
'run-parts': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'sed': {},
|
|
|
|
'tar': {},
|
|
|
|
'texinfo': {},
|
2021-02-18 13:24:57 +00:00
|
|
|
'tmux': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'tree': {},
|
|
|
|
'unzip': {},
|
2021-02-18 13:24:57 +00:00
|
|
|
'vim': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'wget': {},
|
|
|
|
'which': {},
|
|
|
|
'whois': {},
|
|
|
|
'zip': {},
|
2021-02-18 13:24:57 +00:00
|
|
|
}
|
|
|
|
|
2022-02-12 13:06:53 +00:00
|
|
|
if node.metadata.get('pacman/linux-lts', False):
|
|
|
|
pkg_pacman['linux-lts'] = {}
|
2022-03-02 06:12:04 +00:00
|
|
|
pkg_pacman['acpi_call-lts'] = {}
|
2022-02-12 13:06:53 +00:00
|
|
|
else:
|
|
|
|
pkg_pacman['linux'] = {}
|
2022-03-02 06:12:04 +00:00
|
|
|
pkg_pacman['acpi_call'] = {}
|
2021-05-23 10:24:00 +00:00
|
|
|
|
2021-02-18 17:12:25 +00:00
|
|
|
for pkg, config in node.metadata.get('pacman/packages', {}).items():
|
2021-02-18 13:24:57 +00:00
|
|
|
pkg_pacman[pkg] = config
|