diff --git a/resources/attributes/default.rb b/resources/attributes/default.rb index 27135854..2a54bfaf 100644 --- a/resources/attributes/default.rb +++ b/resources/attributes/default.rb @@ -173,6 +173,7 @@ default["redborder"]["services"]["redborder-ale"] = false default["redborder"]["services"]["n2klocd"] = false default["redborder"]["services"]["radiusd"] = false +default["redborder"]["services"]["postfix"] = true default["redborder"]["systemdservices"]["chef-client"] = ["chef-client"] default["redborder"]["systemdservices"]["chef-server"] = ["opscode-erchef"] @@ -209,6 +210,7 @@ default["redborder"]["systemdservices"]["redborder-ale"] = ["redborder-ale"] default["redborder"]["systemdservices"]["n2klocd"] = ["n2klocd"] default["redborder"]["systemdservices"]["radiusd"] = ["radiusd"] +default["redborder"]["systemdservices"]["postfix"] = ["postfix"] # Tier default["redborder"]["druid"]["historical"]["tier"] = "default" diff --git a/resources/metadata.rb b/resources/metadata.rb index 2b7fab4a..d9559b9f 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -42,3 +42,4 @@ depends 'rbcgroup' depends 'rblogstatter' depends 'rb-arubacentral' +depends 'rb-postfix' \ No newline at end of file diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index 2585a38e..77e453ff 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -355,6 +355,10 @@ action (node["redborder"]["services"]["redborder-cep"] ? [:add, :register] : [:remove, :deregister]) end +rb_postfix_config "Configure postfix" do + action (node["redborder"]["services"]["postfix"] ? :add : :remove) +end + rbcgroup_config "Configure cgroups" do action :add end