On Mon, Feb 28, 2011 at 12:44 PM, Alan Barrett <a...@cequrux.com> wrote:

> On Mon, 28 Feb 2011, Douglas Garstang wrote:
>
>> For those that are using external nodes (as local files) and multiple
>> environments, where do you put the external node files?
>>
>
> How is it possible to use external nodes as local files?  I was under the
> impression that node_terminus=exec or node_terminus=ldap were the only ways
> of using external nodes.
>
>
Really? That might be because everyone seems to be on the LDAP external node
bandwagon. You can put a "external_nodes = <script>" in your puppet.conf
file, where <script> is a script that does whatever it needs to read the
local files and dump the output in YAML format. We use files because they
can be revision controlled, which is really important for us.


>  Ie, do you put them down in the environment itself
>> /etc/puppet/env/env1/manifests/extdata/nodes
>> /etc/puppet/env/env.../manifests/extdata/nodes
>> /etc/puppet/env/envN/manifests/extdata/nodes
>>
>> OR, up above the environments?
>> /etc/puppet/manifests/extdata/nodes
>>
>
> I don't do this, obviously, because I didn't know it was possible.
>  However, I'd probably be inclined to store the data in an
> environment-specific directory.
>

Yeah, but then you have the problem of not knowing what environment the node
is in, and you have to go digging around for it. The more environments you
have, the more places you have to dig.

Doug

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to