File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2929 sysctl :
3030 name : ' {{ item.key }}'
3131 value : ' {{ item.value }}'
32- sysctl_set : yes
3332 state : present
3433 reload : yes
3534 ignoreerrors : yes
You can’t perform that action at this time.
0 commit comments