mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-20 13:50:45 +00:00
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:
@@ -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": }
|
||||
|
||||
Reference in New Issue
Block a user