Hi, I think you understood quite well my question even if I was not so clear... ;)
Anyway, according to what you say, let's say that my (ENC) group is named 'DEVEL' and the var named 'env' is set to 'devel'. I add the node 'foo.example.com' to the 'DEVEL' group. Shouldn't the var be named '::env' instead of '::foo' ? Because when I addthe node 'bar.example.com' to that same group, the variable will be '::env' or '::bar' ?
Thx
Tom
Le mercredi 13 novembre 2013 13:29:44 UTC+1, Jason Antman a écrit :
Tom,
I'm not sure I totally understand your question; I've also never used an
ENC (like dashboard) with default.pp, only with modules.
If you set a parameter called "env" on a group in Dashboard, and then
add node "foo.example.com" to that group, the parameter will available
in puppet as a top-scope/global variable, i.e. $::env.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ba237ea7-16d8-406c-b9de-27ef2728e1ec%40googlegroups.com.