Compare commits

..

No commits in common. "e18bb37670b289f913d3ec482d2a26ef28e9e375" and "f19d604213c7850e79adaa4c4ba5698f93102624" have entirely different histories.

4 changed files with 3 additions and 30 deletions

View file

@ -1,15 +0,0 @@
#!/bin/bash
apt update -qq --silent 2> /dev/null
UPGRADABLE=$(apt list --upgradable -qq 2> /dev/null | cut -d '/' -f 1)
if test "$UPGRADABLE" != ""
then
echo "$(wc -l <<< $UPGRADABLE) package(s) upgradable:"
echo
echo "$UPGRADABLE"
exit 1
else
exit 0
fi

View file

@ -28,9 +28,6 @@ files = {
'/etc/apt/sources.list': {
'content': '# managed'
},
'/usr/lib/nagios/plugins/check_apt_upgradable': {
'mode': '0755',
},
}
actions = {
@ -75,7 +72,7 @@ for host, sources in hosts.items():
'action:apt_update',
},
}
files[destination_path] = {
'source': join(repo.path, 'data', 'apt', 'keys', keyfile),
'content_type': 'binary',
@ -86,7 +83,7 @@ for host, sources in hosts.items():
# create backport pinnings
for package, options in node.metadata.get('apt/packages', {}).items():
for package, options in node.metadata.get('apt/packages', {}).items():
pkg_apt[package] = options
if pkg_apt[package].pop('backports', False):

View file

@ -3,13 +3,4 @@ defaults = {
'packages': {},
'sources': set(),
},
'monitoring': {
'services': {
'apt upgradable': {
'vars.command': '/usr/lib/nagios/plugins/check_apt_upgradable',
'vars.sudo': True,
'check_interval': '1d',
},
},
},
}

View file

@ -19,7 +19,7 @@ defaults = {
},
'nftables': {
'input': {
'udp dport 51820 accept',
'tcp dport 51820 accept',
},
},
'wireguard': {