Hi all

so far I'm loving Puppet, have asked a few questions on IRC and had
really good support there.
This one has me scratching my head, though.

I was hoping to use puppets implicit tagging feature to handle
iptables configs e.g.

# iptables.erb

<% if tags.includes('webserver') %>
# allow port 80 in
<% end %>

So I wrote a quick module to test that tags worked how I expected them
to, and they don't seem to.
My entire puppet config is up on github (
http://github.com/rasputnik/babysteps-puppet/tree/master ) if that
helps.

# http://github.com/rasputnik/babysteps-puppet/blob/master/manifests/roles.pp
class baseclass {

  include root_mail
  include ssh

  include tagtest
}

# http://github.com/rasputnik/babysteps-puppet/blob/master/manifests/nodes.pp
node 'node03' { include baseclass }

The 'tagtest' module
( http://github.com/rasputnik/babysteps-puppet/tree/master/modules/tagtest )
runs a simple template to dumps all defined tags defined to /tagtest.
On node03 it looks ilke this:

baseclass
class
main
node
node03
tagtest

i.e. 'root_mail' and 'ssh' are absent.

Can someone explain why? I'm hoping there's a simple 'replace include
with inherits' type
trick to sort this out.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to