Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How retrieve a fact and store this value in a variable with Puppet?

$
0
0
I have a script where I retrieve the IP from a machine and then perform some logical operations to decide what value give to a variable. Then I use this value to make some decisions about the environment the machine is working. I am trying to translate this to Puppet, but I am not shure how to proceed. I know I can retrieve the IP using facts, but should I do this in an manifest or a template. Also where should I perform the logical operations. Have in mind I'm going to do string manipulation. To summerize, these are the steps I have to take. 1) Get the IP from the machine. 2) Perform logical operations. 3) Pass a variable with the result to a manifest. Thanks in advance.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>