diff options
author | Jhon Honce <jhonce@redhat.com> | 2015-06-12 11:19:29 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2015-06-12 11:19:29 -0700 |
commit | 17c6b4c5da76ecff6f8c68254ab6424d0d9a736e (patch) | |
tree | 5237506b41e4671d00be56592db2737bd16e3729 /roles/openshift_node | |
parent | 42806b6745c747843b71eaf08b62aeee5e450ab1 (diff) | |
download | openshift-17c6b4c5da76ecff6f8c68254ab6424d0d9a736e.tar.gz openshift-17c6b4c5da76ecff6f8c68254ab6424d0d9a736e.tar.bz2 openshift-17c6b4c5da76ecff6f8c68254ab6424d0d9a736e.tar.xz openshift-17c6b4c5da76ecff6f8c68254ab6424d0d9a736e.zip |
Infrastructure - Set OpenShift Registry
* TODO: update to secure when 'add volume' feature available in origin
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index c5202650f..7dd76e0b8 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -56,6 +56,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=172.30.0.0/16 --selinux-enabled'" + when: docker_check.stat.isreg + - name: Allow NFS access for VMs seboolean: name=virt_use_nfs state=yes persistent=yes |