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. $::foo. Is that what you were asking? -jantman On 11/13/2013 06:54 AM, Thomas RICOU wrote: > Hi > > I'm kinda noobish to puppet and I can't find an answer to my question. > What can I can do with the dashboard groups ? In fact I'm interested > in setting a var "env" to a value in ['devel','valid','prod']. this > value should be set only once when I create a new virtual machine > using a puppet agent. The thing is that this machine will use a > "default" node configuration which needs to know the value of the > "env" var. For some reasons, I don' t want to create a node file per > machine setting this param so I searched for something very easy to do > so. I found the "Groups" I saw in the dashboard web interface and in > which I created that "env" var but I can't figure out how to get it's > value back in default.pp node file. > > Am I completely wrong using these Groups? > > Thanks > > Tom > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/d267b355-fc88-4f23-b60e-dffcb7f12de1%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/528370B8.2090103%40jasonantman.com. For more options, visit https://groups.google.com/groups/opt_out.