Commit cf8c73a7d3e4da8f79ea7071f3724e4deb1529c2
1 parent
aebfbe16
Exists in
master
and in
90 other branches
Add SELinux
Showing
2 changed files
with
15 additions
and
0 deletions
Show diff stats
cookbooks/basics/recipes/default.rb
1 | # enable EPEL repository by default | 1 | # enable EPEL repository by default |
2 | package 'epel-release' | 2 | package 'epel-release' |
3 | 3 | ||
4 | +# replicate production security setup | ||
5 | +package 'selinux-policy' | ||
6 | +package 'policycoreutils-python' | ||
7 | +cookbook_file '/etc/selinux/config' do | ||
8 | + source 'selinux_config' | ||
9 | + owner 'root' | ||
10 | + group 'root' | ||
11 | + mode 0644 | ||
12 | +end | ||
13 | +execute 'setenforce Enforcing' | ||
14 | + | ||
4 | package 'vim' | 15 | package 'vim' |
5 | package 'bash-completion' | 16 | package 'bash-completion' |
6 | package 'rsyslog' | 17 | package 'rsyslog' |