diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/host.pp | 4 | ||||
-rw-r--r-- | manifests/params.pp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/manifests/host.pp b/manifests/host.pp index c4d0f70..064588b 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -114,7 +114,7 @@ define gluster::host( group => root, mode => 600, # u=rw,go=r seltype => 'glusterd_var_lib_t', - seluser => 'system_u', + seluser => "${::gluster::params::selinux_glusterd_seluser}", ensure => present, notify => Service["${::gluster::params::service_glusterd}"], require => File['/var/lib/glusterd/'], @@ -200,7 +200,7 @@ define gluster::host( # NOTE: this mode was found by inspecting the process mode => 600, # u=rw,go=r seltype => 'glusterd_var_lib_t', - seluser => 'system_u', + seluser => "${::gluster::params::selinux_glusterd_seluser}", notify => [ # propagate the notify up File['/var/lib/glusterd/peers/'], diff --git a/manifests/params.pp b/manifests/params.pp index ce8ef4d..7b3f6bd 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -53,6 +53,9 @@ class gluster::params( $program_fping = '/usr/sbin/fping', $program_findmnt = '/bin/findmnt', + # SELinux + $selinux_glusterd_seluser = 'system_u', + # services... $service_glusterd = 'glusterd', |