From: Mickaël Canévet Date: Mon, 14 Apr 2014 13:58:31 +0000 (+0200) Subject: Apply firewall resources alphabetically X-Git-Tag: 1.1.0~1^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c30cfb9219d8add8e03d3546979fd87249e4e0ee;p=puppet-modules%2Fpuppetlabs-firewall.git Apply firewall resources alphabetically --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 75cf586..7c5c60e 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -892,6 +892,10 @@ Puppet::Type.newtype(:firewall) do end end + autorequire(:firewall) do + catalog.resources.select { |r| (r.class.to_s == "Puppet::Type::Firewall") and (r.name <=> name) == -1 }.sort.last + end + validate do debug("[validate]")