Wednesday, March 21, 2012

What's an Empty Module Look Like?

One module is particularly compact: ip6tables.

The init.pp file is empty.  There is, however, a README, which says this:
=====================
ip6tables
=====================
-----------
Usage
-----------
The ip6tables utility controls the network packet filtering code in the,
Linux kernel. If you need to set up ipv6 firewalls, you should install
this package.
Looks like a module that someone's just creating.  A quick look at the log says that's exactly right: it was just created a few days ago, with the comment.

    Add in minimal files for ip6tables.


This tells me the skeleton FI is using for its modules.  What are the files?
$ tree .
.
|-- manifests
|   `-- init.pp
|-- README
`-- templates
    `-- iptables.erb
The third file, iptables.erb, is also still empty.   I'll get to watch them grow.

Unfortunately, I don't know much of anything about ip6tables, or, really, any of ip6.  Perhaps that'll turn into "fortunately," if it prompts me to learn something so I can understand what I'm seeing.  It's all in how I look at it.
The pessimist says, "The glass is half empty."
The optimist says, "The glass is half full."
The engineer says, "The glass is twice as big as it needs to be."

No comments:

Post a Comment