remove apt-listchanges
This commit is contained in:
parent
98e05fc151
commit
9c639b4977
2 changed files with 56 additions and 51 deletions
|
@ -23,12 +23,12 @@ directories = {
|
||||||
'action:apt_update',
|
'action:apt_update',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/etc/apt/listchanges.conf.d': {
|
# '/etc/apt/listchanges.conf.d': {
|
||||||
'purge': True,
|
# 'purge': True,
|
||||||
'triggers': {
|
# 'triggers': {
|
||||||
'action:apt_update',
|
# 'action:apt_update',
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
'/etc/apt/preferences.d': {
|
'/etc/apt/preferences.d': {
|
||||||
'purge': True,
|
'purge': True,
|
||||||
'triggers': {
|
'triggers': {
|
||||||
|
@ -56,9 +56,9 @@ files = {
|
||||||
'action:apt_update',
|
'action:apt_update',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'/etc/apt/listchanges.conf': {
|
# '/etc/apt/listchanges.conf': {
|
||||||
'content': repo.libs.ini.dumps(node.metadata.get('apt/list_changes')),
|
# 'content': repo.libs.ini.dumps(node.metadata.get('apt/list_changes')),
|
||||||
},
|
# },
|
||||||
'/usr/lib/nagios/plugins/check_apt_upgradable': {
|
'/usr/lib/nagios/plugins/check_apt_upgradable': {
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'apt-listchanges': {
|
||||||
|
'installed': False,
|
||||||
|
},
|
||||||
|
},
|
||||||
'config': {
|
'config': {
|
||||||
'DPkg': {
|
'DPkg': {
|
||||||
'Pre-Install-Pkgs': {
|
'Pre-Install-Pkgs': {
|
||||||
|
@ -125,45 +130,45 @@ def unattended_upgrades(metadata):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
# @metadata_reactor.provides(
|
||||||
'apt/config',
|
# 'apt/config',
|
||||||
'apt/list_changes',
|
# 'apt/list_changes',
|
||||||
)
|
# )
|
||||||
def listchanges(metadata):
|
# def listchanges(metadata):
|
||||||
return {
|
# return {
|
||||||
'apt': {
|
# 'apt': {
|
||||||
'config': {
|
# 'config': {
|
||||||
'DPkg': {
|
# 'DPkg': {
|
||||||
'Pre-Install-Pkgs': {
|
# 'Pre-Install-Pkgs': {
|
||||||
'/usr/bin/apt-listchanges --apt || test $? -lt 10',
|
# '/usr/bin/apt-listchanges --apt || test $? -lt 10',
|
||||||
},
|
# },
|
||||||
'Tools': {
|
# 'Tools': {
|
||||||
'Options': {
|
# 'Options': {
|
||||||
'/usr/bin/apt-listchanges': {
|
# '/usr/bin/apt-listchanges': {
|
||||||
'Version': '2',
|
# 'Version': '2',
|
||||||
'InfoFD': '20',
|
# 'InfoFD': '20',
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
'Dir': {
|
# 'Dir': {
|
||||||
'Etc': {
|
# 'Etc': {
|
||||||
'apt-listchanges-main': 'listchanges.conf',
|
# 'apt-listchanges-main': 'listchanges.conf',
|
||||||
'apt-listchanges-parts': 'listchanges.conf.d',
|
# 'apt-listchanges-parts': 'listchanges.conf.d',
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
'list_changes': {
|
# 'list_changes': {
|
||||||
'apt': {
|
# 'apt': {
|
||||||
'frontend': 'pager',
|
# 'frontend': 'pager',
|
||||||
'which': 'news',
|
# 'which': 'news',
|
||||||
'email_address': 'root',
|
# 'email_address': 'root',
|
||||||
'email_format': 'text',
|
# 'email_format': 'text',
|
||||||
'confirm': 'false',
|
# 'confirm': 'false',
|
||||||
'headers': 'false',
|
# 'headers': 'false',
|
||||||
'reverse': 'false',
|
# 'reverse': 'false',
|
||||||
'save_seen': '/var/lib/apt/listchanges.db',
|
# 'save_seen': '/var/lib/apt/listchanges.db',
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
}
|
# }
|
||||||
|
|
Loading…
Reference in a new issue