Cristian Falcas
2014-Jun-26 14:24 UTC
[Puppet Users] resources type and different providers
Hello, I'm trying to make a new provider for the firewall type ( for amazon security groups ). But I'm trying to use both providers inside the catalog: some rules I need for iptables only (for ex. nat rules), others for the security groups only. I'm differentiating between the rules with a special tag. In my code I have this rule to change the provider: Firewall <| tag != 'iptables' |> { provider => 'aws_securitygroup', line => 'test', action => 'accept', } Much to my surprise, both providers are executed for each firewall rule: so i have a security rule added and an iptables rule. I like this very much, because at first I thought that only the amazon rules will be executed. My question is: is this the expected behavior? Or it's some kind of bug I stumbled upon? Best regards, Cristian Falcas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMo7R_esfKsXq9_WMfxT5wVmGW%2Bz4eQU%2BHx7-A0%2BMKxmW3dsJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.