nuka.tasks.apt
¶
nuka.tasks.apt.debconf_set_selections¶
Example:
res = await apt.debconf_set_selections(
[('adduser', 'adduser/homedir-permission', 'true')]
)
assert bool(res)
nuka.tasks.apt.list¶
nuka.tasks.apt.search¶
nuka.tasks.apt.source¶
Example:
if 'wheezie' in host.hostname:
n = 'wheezie'
elif 'jessie' in host.hostname:
n = 'jessie'
else:
n = 'stretch'
src = 'deb http://apt.dockerproject.org/repo/ debian-{0} main'.format(n)
res = await apt.source(
name='docker',
key='https://yum.dockerproject.org/gpg',
src=src,
)
assert bool(res)
src = 'deb https://deb.bearstech.com/debian {0}-bearstech main'.format(n)
res = await apt.source(
name='bearstech',
key='https://deb.bearstech.com/bearstech-archive.gpg',
src=src,
)
assert bool(res)