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.

15 comments:

  1. We should read these messages more often Miranda

    ReplyDelete
  2. This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this.
    girls go games

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

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

    ReplyDelete
  4. 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
  5. This site and I consider this web website is extremely instructive! Keep on setting up!

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

    ReplyDelete
  6. فوائد عزل المنزل
    يوجد العديد من الفوائد التي يمكن الحصول عليه نتيجة القيام بعزل المنازل، ومن أهم هذه الفوائد ما يأتي: التقليل من انتقال الطاقة الحرارية من خلال الأسطح، والأرضيات، والجدران؛ مما يعمل على المحافظة على درجة حرارة المنزل صيفاً، وشتاءًالحد من المشكلات التي تتسبب بها الحشرات، عن طريق استخدام كتل رغوية معالجة بالمبيدات الحشرية مما يمنع وصولها إلى المنزل

    شركة عزل اسطح بتبوك

    الخزانات من أهم الأشياء التي لابد من وجودها في المنزل ، و ذلك لأنها تعمل على حفظ المياه باستمرار في وقت انقطاعها ، و كذلك تعمل على حفظها بجودة عالية ، و هناك العديد من الشركات التي توفر خدمات عزل الخزانات و منها على سبيل المثال شركة المتميز
    الشركة تعمل على توفير العديد من الخدمات المميزة ، و من بينها مختلف أعمال الصيانة ، هذا بالإضافة إلى توفير العديد من الخدمات التي تتمثل في العزل سواء العزل المائي أو الحراري و غيرها ، كذلك توفر الشركة خدمات مميزة تتعلق بعزل الخزانات ، و ذلك بالاعتماد على تقنيات عالية الجودة ، هذه التقنيات لا تتفاعل مع المياه و لا تؤثر على جودتها ، و يتم انتقائها تبعا لنوع الخزان سواء كان بلاستيك أو خرساني و كذلك سواء كان سط

    شركة عزل خزانات بالاحساء

    ReplyDelete
  7. I searched a lot on this topic and finally found it. I read your post and was very impressed. We visit this site frequently to appreciate your comments. keo nhacai

    ReplyDelete
  8. As the Internet develops further in the future, I think we need to collect materials that people might be interested in. Among the data to be collected, your 메가슬롯 will also be included.

    ReplyDelete
  9. 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
  10. Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you 먹튀사이트 I couldn't think of this, but it's amazing! I wrote several posts similar to this one, but please come and see!!

    ReplyDelete
  11. Do you like the kind of articles related to 메이저놀이터 If someone asks, they'll say they like related articles like yours. I think the same thing. Related articles are you the best.

    ReplyDelete
  12. What a nice post! I'm so happy to read this. 안전놀이터모음 What you wrote was very helpful to me. Thank you. Actually, I run a site similar to you. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day.

    ReplyDelete
  13. THIS ARTICLE WAS SO VERY POPULARIZED BY NOW, SPECIALLY DURING THIS TIME OF TECHNOLOGIES I WANT TO SAY THAT THIS IS SO VERY HELPFUL TO ME AND TO OTHERS. THAT WOULD BE ALL! THANKS
    스포츠토토

    ReplyDelete