I'm not being descriptive, I know. I'll clarify as pseudo-code; I'm 
essentially attempting to declare a variable in node.pp as such: 

node 'util-mysql0' inherits default {
        $mysqlsr = [define value]
        ....
} 

So: 

- Define variable
- Create the condition in the template
- If var condition is met. Add line to the file for that node.
- Rinse, lather and repeat. 

As you can see, by defining the variable, I'm attempting to predefine the 
condition. I would like to re-write the template, rather include the extra 
line (the aforementioned) when the variable is defined for the node. If my 
approach is incorrect, I suppose I would ask that you let me know. If not 
then, please let me know what I might be missing.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/kT1GluO0QTkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to