diff --git a/resources/metadata.rb b/resources/metadata.rb index a70873c2..8769a583 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -37,5 +37,6 @@ depends 'rbcep' depends 'cron' #depends 'ohai' +depends 'rb-selinux' #depends 'rbaioutliers' depends 'rbcgroup' diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index 2c6e1baa..fe50f26b 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -12,6 +12,16 @@ # manager services manager_services = manager_services() +manager_services = manager_services() + +rb_selinux_config "Configure Selinux" do + if shell_out("getenforce").stdout.chomp == "Disabled" + action :remove + else + action :add + end +end + consul_config "Configure Consul Server" do confdir node["consul"]["confdir"] datadir node["consul"]["datadir"]