diff options
author | Tobias Brunner <tobias@tobru.ch> | 2017-05-19 13:27:50 +0200 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-05-19 09:42:45 -0400 |
commit | 0ee812822a5fe5ba7cc00d00c58744104c2d9fee (patch) | |
tree | 506bde2bc0480c8a3ff9cdc15371612806fd2642 /roles/openshift_node | |
parent | b61044dfa3669d79bd5e99c846ad4d10de172583 (diff) | |
download | openshift-0ee812822a5fe5ba7cc00d00c58744104c2d9fee.tar.gz openshift-0ee812822a5fe5ba7cc00d00c58744104c2d9fee.tar.bz2 openshift-0ee812822a5fe5ba7cc00d00c58744104c2d9fee.tar.xz openshift-0ee812822a5fe5ba7cc00d00c58744104c2d9fee.zip |
allow to configure oreg_url specifically for node or master. refs #4233
This commit allows to specify imageConfig.format specifically for master
or for nodes.
One use case of this could be if you want to use customer builder
images. In this case imageConfig.format only needs to be changed in the
master-config.yml but not in the node-config.yml.
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/README.md | 9 | ||||
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/roles/openshift_node/README.md b/roles/openshift_node/README.md index b69b60c1d..fb0b494da 100644 --- a/roles/openshift_node/README.md +++ b/roles/openshift_node/README.md @@ -15,10 +15,11 @@ Role Variables -------------- From this role: -| Name | Default value | | -|------------------------------------------|-----------------------|--------------------------------------------------------| -| openshift_node_debug_level | openshift_debug_level | Verbosity of the debug logs for node | -| oreg_url | UNDEF (Optional) | Default docker registry to use | +| Name | Default value | | +|----------------------------|-----------------------|----------------------------------------------------------| +| openshift_node_debug_level | openshift_debug_level | Verbosity of the debug logs for node | +| oreg_url | UNDEF (Optional) | Default docker registry to use | +| oreg_url_node | UNDEF (Optional) | Default docker registry to use, specifically on the node | From openshift_common: diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index 656874f56..d1312e5e1 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -22,7 +22,7 @@ iptables_sync_period: "{{ openshift_node_iptables_sync_period | default(None) }}" kubelet_args: "{{ openshift_node_kubelet_args | default(None) }}" labels: "{{ lookup('oo_option', 'openshift_node_labels') | default( openshift_node_labels | default(none), true) }}" - registry_url: "{{ oreg_url | default(none) }}" + registry_url: "{{ oreg_url_node | default(oreg_url) | default(None) }}" schedulable: "{{ openshift_schedulable | default(openshift_scheduleable) | default(None) }}" sdn_mtu: "{{ openshift_node_sdn_mtu | default(None) }}" storage_plugin_deps: "{{ osn_storage_plugin_deps | default(None) }}" |