Skip to content

Commit d7e8321

Browse files
committed
Disable SELinux when Docker
1 parent 051cfae commit d7e8321

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,7 @@
9292
- Update/validate CentOS 7 box
9393
- Update documentation
9494
- Update failure cases for CentOS
95+
96+
## v1.3.2
97+
98+
- Disable SELinux when Docker is used

tasks/CentOS.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
# File: tasks/CentOS.yml - CentOS tasks for nomad
33

4+
# Supposedly SELinux disrupts LXC (shrug)
5+
- name: Disable SELinux
6+
lineinfile: dest=/etc/selinux/config regexp='^SELINUX=enforcing' line='SELINUX=disabled'
7+
when: nomad_enable_docker == "true"
8+
49
- name: OS Packages
510
yum: "name={{ item }} state=present"
611
with_items: "{{ nomad_centos_os_packages }}"

tasks/RedHat.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
# File: tasks/Red Hat.yml - Red Hat tasks for nomad
33

4-
# Download and install SELinux Python module (required by Ansible)
4+
# Supposedly SELinux disrupts LXC (shrug)
5+
- name: Disable SELinux
6+
lineinfile: dest=/etc/selinux/config regexp='^SELINUX=enforcing' line='SELINUX=disabled'
7+
when: nomad_enable_docker == "true"
58

69
- name: OS Packages
710
yum: "name={{ item }} state=present"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.1
1+
v1.3.2

0 commit comments

Comments
 (0)