LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-05-2012, 01:33 PM   #1
edwardcode
Member
 
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.

Thanks

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


Reply


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


All times are GMT -5. The time now is 11:20 PM.

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