Skip to content

Commit 371ed47

Browse files
author
Sebastian Gumprich
authored
Merge pull request #91 from conorsch/support-centos7
Adds support for CentOS 7
2 parents f059577 + 12053b2 commit 371ed47

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.kitchen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ platforms:
3838
driver_config:
3939
box: opscode-centos-6.5
4040
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box
41+
- name: centos-7.2
42+
driver_config:
43+
box: opscode-centos-7.2
44+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-7.2_chef-provisionerless.box
4145
- name: oracle-6.4
4246
driver_config:
4347
box: oracle-6.4

tasks/minimize_access.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
---
2-
- name: minimize access
3-
file: path='{{item}}' mode='go-w' recurse=yes
2+
# Using a two-pass approach for checking directories in order to support symlinks.
3+
- name: find directories for minimizing access
4+
stat:
5+
path: "{{ item }}"
6+
register: minimize_access_directories
47
with_items:
58
- '/usr/local/sbin'
69
- '/usr/local/bin'
710
- '/usr/sbin'
8-
- '/usr/bin'
11+
- '/usr/bin'
912
- '/sbin'
1013
- '/bin'
1114
- '{{os_env_extra_user_paths}}'
1215

16+
- name: minimize access
17+
file: path='{{item.stat.path}}' mode='go-w' recurse=yes
18+
when: item.stat.isdir
19+
with_items: "{{ minimize_access_directories.results }}"
20+
1321
- name: change shadow ownership to root and mode to 0600 | DTAG SEC Req 3.21-7
1422
file: dest='/etc/shadow' owner={{ os_shadow_perms.owner }} group={{ os_shadow_perms.group }} mode={{ os_shadow_perms.mode }}
1523

tasks/sysctl.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
sysctl:
3030
name: '{{ item.key }}'
3131
value: '{{ item.value }}'
32-
sysctl_set: yes
3332
state: present
3433
reload: yes
3534
ignoreerrors: yes

0 commit comments

Comments
 (0)