diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-01 00:45:56 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-02 10:53:10 -0500 |
commit | 87cb07bc85ee3965927c8799204f4ef0d172e145 (patch) | |
tree | ea60364ae26e15feabbe3c4d4d8d8d24630cba93 /roles/openshift_node/tasks | |
parent | 17feda9c8694da54e63294aa926209cf33b54101 (diff) | |
download | openshift-87cb07bc85ee3965927c8799204f4ef0d172e145.tar.gz openshift-87cb07bc85ee3965927c8799204f4ef0d172e145.tar.bz2 openshift-87cb07bc85ee3965927c8799204f4ef0d172e145.tar.xz openshift-87cb07bc85ee3965927c8799204f4ef0d172e145.zip |
add support for overriding default registry url
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index 9015cae80..b908e325b 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -30,6 +30,15 @@ notify: - restart openshift-node +- name: Set default registry url + lineinfile: + dest: /etc/sysconfig/openshift-node + regexp: '^IMAGES=' + line: "IMAGES={{ openshift_registry_url }}" + when: openshift_registry_url is defined + notify: + - restart openshift-node + - name: Set OpenShift node facts include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" facts: |