* The ports that all nodes share in common I am adding to the
modules/my_firewall/manifests/init.pp file, but the ports that are specific
to a node I am adding to the node definition in manifests/site.pp. What
should I do to prevent the firewall rules from becoming unwieldy in my
site.pp file? It is fine if there are only a few ports open, but once I
start adding a lot of ports to the nodes it gets rather big. Any
suggestions, or is it common to have rather large node definitions?
You can of course provide a list of dport/sport's as an array -
however I normally associate a firewall port being opened with a
particular class/app and have the firewall definition defined there,
then by including the class you get the open port. For example, my
mysql module would open port 3306.
* The documentation says that the number should be between 000..999.
However, I made my post.pp deny rule as 99999 so that I could make the
number the port (makes sense to me and help track which port is for what
purpose; I made it that high because one app has port 27000). The vast
majority of the time I don't care what order the ports are in, just so long
as they appear between the pre and post section. It also helps me remember
which number the rule should be so I don't have duplicate ID numbers. Does
anyone else label the ID this way? Is there a problem with making this ID so
large when the documentation lists the max number as 999 (I am guessing it
was just a large number the author picked at random and not one with
significant meaning, but I am curious)?
Yeah, it was made up - or at least, it was an old range that was
changed later on.
Also, a semi-related question since I am posting the configs...Did I do it
right? :-D It works for my test cases so far. Mostly just want to check to
make sure I didn't misunderstand the documentation. So if I missed something
or if I goofed something up, I would appreciate a response.
Looks fine to me.


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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
grouppuppet-users @
postedJun 27, '13 at 1:48a
activeJun 27, '13 at 12:47p

2 users in discussion

Stack Kororā: 2 posts Ken Barber: 1 post



site design / logo © 2022 Grokbase