Saturday, February 23, 2013

Puppet tip

I have a custom puppet type called iptables. Not surprisingly it is used to build iptables rules.

Recently I was setting up a router which required MASQUERADING a few virtual network interfaces. I found that the module was lacking the ability to negate a match. For example I wanted a rule:
-A FORWARD ! -s -i vnet -j DROP

It seemed like a simple task to add in the ability to insert the !. After all it is mostly just string manipulation.

My puppet setup already has pluginsync enabled and working so I though deploying my changes would be easy too.

I managed to make my changes (even though ruby is quite a foreign language to me). When I ran puppet I could see the changes being pulled down to the client but alas, it did not work correctly.

I checked with several web pages which try to explain how easy it is to add new properties and everything I was doing was correct.

After wasting hours tinkering in the ruby code I had the idea to restart the puppet master and bang, it started working.

Seems so obvious in hindsight.


  1. We should read these messages more often Miranda

  2. It is amazingly decent to see the best subtle elements introduced in a simple and understanding way.


  3. I require you to thank for your period of this extraordinary read !!! I definitely welcome every last bit of it and I have you bookmarked to take a gander at new stuff of your blog a certain prerequisite read blog!


  4. This site and I consider this web website is extremely instructive! Keep on setting up!


  5. I was very pleased to find this web-site. I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.
    Click Here
    Visit Web

  6. Puppet tips illuminate the art of storytelling. Explore this nuanced craft with the guidance of professional essay writers in UAE. Their expertise provides valuable insights into the dynamics of puppetry, offering a well-informed perspective. Delve into the world of puppetry, enriched by the knowledge and proficiency of skilled writers.

  7. As players progress suika game through the game, they will encounter a variety of challenges and obstacles that test their strategic thinking and stacking skills. With no set time limit, players are encouraged to focus on creating combos and mastering the art of fruit merging to achieve high scores and unlock new levels.