Remove Docker proxy configuration

- so that the local register mirror (configured in the template) gets used instead -- related to the template
This commit is contained in:
Z. Cliffe Schreuders
2025-03-18 14:14:35 +00:00
parent 79b59a44a0
commit 987263c031

View File

@@ -46,6 +46,13 @@ include 'docker'
# provider => shell,
# }
# remove proxy config (it's in the template, and this overrides)
exec { 'remove_docker_proxy_conf':
command => 'sudo rm /etc/systemd/system/docker.service.d/*proxy.conf',
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
onlyif => 'test -d /etc/systemd/system/docker.service.d && ls /etc/systemd/system/docker.service.d/*proxy.conf',
}
# download (pull) a set of images
$images.each |$image| {
docker::image { "$image": }