diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2017-09-25 11:17:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 11:17:16 -0700 |
commit | 4ceb4bd931fa48b1f666d2258fff763b29bffba8 (patch) | |
tree | 065ebb428f85565dea0ecb4efe078fe1fef3e530 /roles/docker/templates/registries.conf | |
parent | 33ac861412ab745b0cd36cc42735b92953737661 (diff) | |
parent | b35272a794a572f60034293dd8cb7f057cf3fc8c (diff) | |
download | openshift-4ceb4bd931fa48b1f666d2258fff763b29bffba8.tar.gz openshift-4ceb4bd931fa48b1f666d2258fff763b29bffba8.tar.bz2 openshift-4ceb4bd931fa48b1f666d2258fff763b29bffba8.tar.xz openshift-4ceb4bd931fa48b1f666d2258fff763b29bffba8.zip |
Merge pull request #5205 from mgugino-upstream-stage/docker-etc-containers-regs
Automatic merge from submit-queue
Move additional/block/insecure registires to /etc/containers/...
Move additional/block/insecure registires to /etc/containers/registries.conf
This commit moves additional/block/insecure registries to
/etc/containers/registries.conf and comments existing lines in
/etc/sysconfig/docker.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460930
Diffstat (limited to 'roles/docker/templates/registries.conf')
-rw-r--r-- | roles/docker/templates/registries.conf | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/roles/docker/templates/registries.conf b/roles/docker/templates/registries.conf new file mode 100644 index 000000000..c55dbd84f --- /dev/null +++ b/roles/docker/templates/registries.conf @@ -0,0 +1,46 @@ +# {{ ansible_managed }} +# This is a system-wide configuration file used to +# keep track of registries for various container backends. +# It adheres to YAML format and does not support recursive +# lists of registries. + +# The default location for this configuration file is /etc/containers/registries.conf. + +# The only valid categories are: 'registries', 'insecure_registies', +# and 'block_registries'. + + +#registries: +# - registry.access.redhat.com + +{% if l2_docker_additional_registries %} +registries: +{% for reg in l2_docker_additional_registries %} + - {{ reg }} +{% endfor %} +{% endif %} + +# If you need to access insecure registries, uncomment the section below +# and add the registries fully-qualified name. An insecure registry is one +# that does not have a valid SSL certificate or only does HTTP. +#insecure_registries: +# - + +{% if l2_docker_insecure_registries %} +insecure_registries: +{% for reg in l2_docker_insecure_registries %} + - {{ reg }} +{% endfor %} +{% endif %} + +# If you need to block pull access from a registry, uncomment the section below +# and add the registries fully-qualified name. +#block_registries: +# - + +{% if l2_docker_blocked_registries %} +block_registries: +{% for reg in l2_docker_blocked_registries %} + - {{ reg }} +{% endfor %} +{% endif %} |