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 [email protected].
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.