Ruby Code for Puppet
I would like to crate a new custom fact for puppet. I want the code to take an IP and add two to the last octet. (example: 127.0.0.1 to 127.0.0.3) I know I can exec a long string of crap, but I was hopping that every thing could be done in ruby so I can put it in my Fact.rb file in puppet. The only problem is my ruby skill are currently low, but growing.
Will any one help?
Thanks in advance.
|