Skip to content

Commit

Permalink
Let openshift-ansible manage selinux and insecure_registry
Browse files Browse the repository at this point in the history
openshift-ansible now manages selinux and insecure_registry
parameters so it's conflicting with our own management of it.
It defaults to selinux enabled which breaks overlay2 driver.

Change-Id: Ie4f67b0e3124a299aa7cb1de6c0dd11f66a55a0e
  • Loading branch information
David Moreau-Simard committed Jul 24, 2017
1 parent 03ae72f commit c35981f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions group_vars/OSEv3.yml
@@ -1,4 +1,7 @@
---
openshift_docker_selinux_enabled: false
openshift_docker_insecure_registries: 172.30.0.0/16
openshift_disable_check: memory_availability
debug_level: 2

# This is deployed on an OpenStack cloud which defaults eth0 mtu to 1450
Expand Down
8 changes: 8 additions & 0 deletions roles/host-preparation/tasks/main.yml
Expand Up @@ -44,6 +44,14 @@
notify:
- Restart docker

- name: Remove --selinux-enabled from /etc/sysconfig/docker for overlay2
lineinfile:
dest: "/etc/sysconfig/docker"
regexp: "^OPTIONS="
line: "OPTIONS='--log-driver=journald --signature-verification=false'"
notify:
- Restart docker

- name: Configure Docker MTU
lineinfile:
dest: "/etc/sysconfig/docker-network"
Expand Down

0 comments on commit c35981f

Please sign in to comment.