Dax Jack
2013-Jul-02 18:30 UTC
[Puppet Users] How to: In nodes.pp - point "node" to hostnames in a file
I am working on a project that involves host names with now sequence to them. I would like my "node" hostnames in nodes.pp to point to a file with a list of these hostnames. Example: node {path/filename} { instead of the usual: node ''www1.example.com'' { or node /^www\d+$/ { Can this be done? Can anyone show my an example of how this was achieved? Thanks in advance. -- 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+unsubscribe@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.
Dick Davies
2013-Jul-03 09:52 UTC
Re: [Puppet Users] How to: In nodes.pp - point "node" to hostnames in a file
Sounds like you might want to look at using an ENC - see: http://docs.puppetlabs.com/guides/external_nodes.html On 2 July 2013 19:30, Dax Jack <cubefeed@gmail.com> wrote:> I am working on a project that involves host names with now sequence to > them. > > I would like my "node" hostnames in nodes.pp to point to a file with a > list of these hostnames. > Example: node {path/filename} { > > instead of the usual: > > node ''www1.example.com'' { > > or > > node /^www\d+$/ { > > > Can this be done? > > > Can anyone show my an example of how this was achieved? > > > Thanks in advance. > > -- > 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+unsubscribe@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. > > >-- 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+unsubscribe@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.
Apparently Analagous Threads
- Does anyone know how to evaluate a node hostname in nodes.pp file?
- Running ENC alongside site.pp (node defn)
- Trouble with ENC and static.pp : enabling ENC fails to find node even with default node in site.pp
- Design, syntax question for passing values from node.pp
- cannot using LDAP nodes with site.pp together?