Skip to content

Commit

Permalink
Set proper selinux context and perms. Keep Dan Walsh from crying.
Browse files Browse the repository at this point in the history
This avoids the constant flip flops you'll see during puppet runs.
I think glusterd might be setting them correctly, but puppet kept
changing them back to the default. All fixed now :)
  • Loading branch information
purpleidea committed Sep 7, 2013
1 parent 231e4b9 commit 7c2dc0c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/host.pp
Expand Up @@ -29,7 +29,9 @@
content => template('gluster/glusterd.info.erb'),
owner => root,
group => root,
mode => 644, # u=rw,go=r
mode => 600, # u=rw,go=r
seltype => 'glusterd_var_lib_t',
seluser => 'unconfined_u',
ensure => present,
require => File['/var/lib/glusterd/'],
}
Expand Down Expand Up @@ -78,7 +80,9 @@
owner => root,
group => root,
# NOTE: this mode was found by inspecting the process
mode => 600, # u=rw,go=
mode => 600, # u=rw,go=r
seltype => 'glusterd_var_lib_t',
seluser => 'unconfined_u',
}
}
}
Expand Down

0 comments on commit 7c2dc0c

Please sign in to comment.