summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-06-12 14:09:36 -0700
committerJhon Honce <jhonce@redhat.com>2015-06-12 14:09:36 -0700
commitffb8bbe2fd6b85ab0f2c108292034931edae1747 (patch)
tree6f2aa57ffdfceee3e7170d0648fce9979c6a2f91 /roles/openshift_node
parent42806b6745c747843b71eaf08b62aeee5e450ab1 (diff)
parentccf7dfedb636c2fc7392f1c2ec1f1d06f0d0c5b5 (diff)
downloadopenshift-ffb8bbe2fd6b85ab0f2c108292034931edae1747.tar.gz
openshift-ffb8bbe2fd6b85ab0f2c108292034931edae1747.tar.bz2
openshift-ffb8bbe2fd6b85ab0f2c108292034931edae1747.tar.xz
openshift-ffb8bbe2fd6b85ab0f2c108292034931edae1747.zip
Merge pull request #281 from jwhonce/wip/insecure_registry
Infrastructure - Set OpenShift Registry
Diffstat (limited to 'roles/openshift_node')
-rw-r--r--roles/openshift_node/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index c5202650f..15d18f510 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -20,6 +20,7 @@
annotations: "{{ openshift_node_annotations | default(none) }}"
registry_url: "{{ oreg_url | default(none) }}"
debug_level: "{{ openshift_node_debug_level | default(openshift.common.debug_level) }}"
+ portal_net: "{{ openshift_master_portal_net | default(None) }}"
- name: Install OpenShift Node package
yum: pkg=openshift-node state=present
@@ -56,6 +57,17 @@
notify:
- restart openshift-node
+- stat: path=/etc/sysconfig/docker
+ register: docker_check
+
+ # TODO: Enable secure registry when code available in origin
+- name: Secure OpenShift Registry
+ lineinfile:
+ dest: /etc/sysconfig/docker
+ regexp: '^OPTIONS=.*'
+ line: "OPTIONS='--insecure-registry={{ openshift.node.portal_net }} --selinux-enabled'"
+ when: docker_check.stat.isreg
+
- name: Allow NFS access for VMs
seboolean: name=virt_use_nfs state=yes persistent=yes