From 87cb07bc85ee3965927c8799204f4ef0d172e145 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Sun, 1 Mar 2015 00:45:56 -0500 Subject: add support for overriding default registry url --- roles/openshift_node/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'roles/openshift_node') 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: -- cgit v1.2.3