sasikiran v
2013-Nov-22 13:04 UTC
[Puppet Users] get list of all nodes in site.pp and use it in another module
How to use pupppet to get all the list of node names available in site.pp and use it in another module which is imported in site.pp For example site.pp --------- node1 { ''first_node'': a => ''hello'' } node2 { ''second_node'': b => ''hai'' } import new_module.pp new_module.pp ---------------------- // Here i want to get all the list of node_names, is there any possibility to retrieve -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3e001c86-1273-4a06-b26b-4196bd8866c2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Nov-25 16:03 UTC
Re: [Puppet Users] get list of all nodes in site.pp and use it in another module
Hi, On 11/22/2013 02:04 PM, sasikiran v wrote:> site.pp > --------- > node1 { ''first_node'': > a => ''hello'' > }this doesn''t look like valid node syntax?> new_module.pp > ---------------------- > > // Here i want to get all the list of node_names, is there any > possibility to retrieveUhm, you can *possibly* get at the data using file() or generate(), but you probably shouldn''t. It sounds like you are laying a nightmarish foundation for your architecture. What are you trying to do, specifically? Maybe we can recommend a better way to get there. Cheers, Felix -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/529374E7.6090504%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
●๋•کáکíkíŕáńツ
2013-Nov-25 16:46 UTC
Re: [Puppet Users] get list of all nodes in site.pp and use it in another module
Hi Felix, I think the question which i asked didn''t make sense. I am new to puppet, basically i don''t have basics on how the things like node, class, define works, Is there any video tutorials avaiable to get through the puppet easily. Thanks, Sasikiran On Mon, Nov 25, 2013 at 9:33 PM, Felix Frank < felix.frank@alumni.tu-berlin.de> wrote:> Hi, > > On 11/22/2013 02:04 PM, sasikiran v wrote: > > site.pp > > --------- > > node1 { ''first_node'': > > a => ''hello'' > > } > > this doesn''t look like valid node syntax? > > > new_module.pp > > ---------------------- > > > > // Here i want to get all the list of node_names, is there any > > possibility to retrieve > > Uhm, you can *possibly* get at the data using file() or generate(), but > you probably shouldn''t. It sounds like you are laying a nightmarish > foundation for your architecture. > > What are you trying to do, specifically? Maybe we can recommend a better > way to get there. > > Cheers, > Felix > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/529374E7.6090504%40alumni.tu-berlin.de > . > 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CACxnTe9NP%3DtHR1PmM_DzZa7EZeUg8uO%2BtFpp5%3DyWa7ra8Fr%3DGg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Nov-25 16:56 UTC
Re: [Puppet Users] get list of all nodes in site.pp and use it in another module
Hi, I know of no video, but it''s hard to convey the basics in such a form anyway, I believe. I recommend taking a look at the official tutorial: http://docs.puppetlabs.com/learning/ Regards, Felix On 11/25/2013 05:46 PM, ●๋•کáکíkíŕáńツ wrote:> Hi Felix, > > I think the question which i asked didn''t make sense. > > I am new to puppet, basically i don''t have basics on how the things like > node, class, define works, > Is there any video tutorials avaiable to get through the puppet easily. > > Thanks, > Sasikiran-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52938125.2010809%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.