Move the firewall and backup recipes outside of the custom resource

See the comment for more details
This commit is contained in:
Greg Karékinian
2019-12-04 17:33:41 +01:00
parent e24cd01287
commit 4e7d453942
2 changed files with 18 additions and 11 deletions

View File

@@ -110,16 +110,5 @@ action :create do
sensitive true
action :nothing
end
include_recipe "firewall"
firewall_rule "ldap" do
port [config[:port], 636]
protocol :tcp
command :allow
end
# backup the data dir and the config files
node.override["backup"]["archives"]["dirsrv"] = ["/etc/dirsrv", "/var/lib/dirsrv"]
include_recipe "backup"
end
end