Mercurial > repos > other > Puppet
comparison modules/website/manifests/init.pp @ 48:5cdc1c96c477 puppet-3.6
Add SELinux support for website content
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 25 Jul 2015 17:10:35 +0100 |
parents | f9876f71f1a3 |
children | 3674aac72674 |
comparison
equal
deleted
inserted
replaced
47:a82c271fb26a | 48:5cdc1c96c477 |
---|---|
79 notify => Service['httpd']; | 79 notify => Service['httpd']; |
80 } | 80 } |
81 file { $cert_dir: | 81 file { $cert_dir: |
82 ensure => directory; | 82 ensure => directory; |
83 } | 83 } |
84 if $operatingsystem == 'CentOS' and versioncmp($operatingsystemrelease, 7) >= 0 { | |
85 exec { 'set_apache_defaults': | |
86 command => 'semanage fcontext -a -t httpd_sys_content_t "/srv/sites(/.*)?"', | |
87 path => '/bin:/usr/bin/:/sbin:/usr/sbin', | |
88 require => Package['policycoreutils-python'], | |
89 unless => 'semanage fcontext --list | grep "/srv/sites\\(/\\.\\*\\)\\?"', | |
90 } | |
91 } | |
84 } | 92 } |