add bundle:docker-ce

This commit is contained in:
Franzi 2022-12-24 17:40:13 +01:00
parent d28cdc78d6
commit 0d56454af7
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 89 additions and 1 deletions

View file

@ -0,0 +1,11 @@
from bundlewrap.metadata import metadata_to_json
files['/etc/docker/daemon.json'] = {
'content': metadata_to_json({
'iptables': False,
}),
'before': {
'pkg_apt:docker-ce',
'pkg_apt:docker-ce-cli',
}
}

View file

@ -0,0 +1,15 @@
defaults = {
'apt': {
'repos': {
'docker': {
'items': {
'deb https://download.docker.com/linux/debian {os_release} stable',
},
},
},
'packages': {
'docker-ce': {},
'docker-ce-cli': {},
},
},
}

View file

@ -25,7 +25,7 @@ defaults = {
},
}
if not node.has_bundle('vmhost'):
if not node.has_bundle('vmhost') and not node.has_bundle('docker-ce'):
# see comment in bundles/vmhost/items.py
defaults['apt']['packages']['iptables'] = {
'installed': False,