Hi Guys,

I'd like to have some default values which are used in templates to be inherited from the basenode hosts.
I tried, but I can't get it to work. This is my setup:


Currently, I'm trying to do something like this:

node basenode {
        include ntp
        include postfix
        include denyhosts
        include ssh
        include nrpe
        <et cetera>

}
in my node definition file.
Then I do:

import "internal-nodes"

in the same file.

Then in internal-nodes.pp :

node 'internal-node' inherits basenode {
        $internalIP = true
}

node 'vpn.XXX.nl' inherits internal-node {
}

The internalIP variable is being used in templates for the vpn.xxx.nl host, but it doesn't seem to get set properly.
The code in the ERB template:


<% if $internalIP == true %>
foo
<% else %>
bar
<% end %>


This will just not work. How can I get this to work properly, I'd love to set the internalIP variable *just* in the 'internal-node' class, and NOT in every internal client.


Cheers,

Boudewijn

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to