Chris Blumentritt wrote: > node web1{ > $secondary_ip = xxx > > network::ip { $secondary_ip: } > apache::site { blah: ip => $secondary_ip } > } > > > How can I access the $secondary_ip variable from a class? I have the > app_server class make the same site on more than one server and I do not > think I can more than once in the node. Besides, defining the same site > more than one time seems bad.
The variables propagate through the included classes. That way you can use $secodary_ip everywhere. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---