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.
↧