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 192.168.1.0/24 -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.

23 comments:

  1. We should read these messages more often Miranda

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

    사설토토
    카지노사이트
    파워볼
    온라인카지노

    ReplyDelete
  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!

    사설토토
    온라인바카라
    파워볼사이트
    바카라사이트

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

    토토
    스포츠토토
    토토사이트
    먹튀검증

    ReplyDelete
  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.

    Osport.lt
    Information
    Click Here
    Visit Web

    ReplyDelete
  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.

    ReplyDelete
  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.

    ReplyDelete
  8. Great tip on using puppets! For those managing tight budgets, consider cheap thesis writing services to help with your academic projects without breaking the bank.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Thanks to John for sharing his experience with using Puppet to manage iptables rules; it was very helpful and inspiring. I hope Sprunki can also provide everyone with an enjoyable experience.

    ReplyDelete
  13. QianYou silicone dolls website:https://qianyousiliconedolls.com/

    ReplyDelete
  14. One of the major advantages of an airport transfers edinburgh is its stress-free nature. You don’t have to worry about navigating unfamiliar bus routes or train schedules. 🚉 A professional taxi driver ensures you arrive on time, offering peace of mind even during peak travel hours.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete