Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-05-2012, 01:33 PM   #1
Registered: Apr 2010
Posts: 161

Rep: Reputation: 16
Puppet: add 2 to the last position of an ip

In puppet I need to take the fact for the ip address and add two to the last octet of that ip address and call it from a template.

Some ideas I have, but I am not sure about, is:
exec a cmd that will do the calculations
have puppet parse the ip address and then add two
or any ideas that this community can come up with

I do not really care if it is messy, I just want reliable.

If any one has ideas that would be great.


Last edited by edwardcode; 12-06-2012 at 07:44 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
puppet question kamaleshbv1 Linux - Newbie 1 05-31-2012 08:42 PM
About Puppet satimis Linux - Software 9 03-05-2012 08:50 PM
Puppet problems takayama Linux - Server 1 12-16-2011 02:18 AM
Query regarding puppet pinga123 Linux - Newbie 2 06-30-2011 10:38 PM
Parameter to execute shell script on puppet client through Puppet server niraj.kumar Linux - Server 3 02-08-2011 09:01 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration