On Friday, September 19, 2014 2:25:34 PM UTC-5, Jose Luis Ledesma wrote: > > Using hiera is probably the best solution. > > So that would mean creating 'server' as an hiera item, and having each class that wanted it look it up as
$server = hiera('server') That's basically the property file approach. An alternative would be to choose one class to be the owner of the data, and have all the other classes involved use that. The chosen class could be one of the existing ones, or it could be a separate one, possibly in a different module: class settings::network { $port = 1234 } class server::config { $listen_port = $::settings::network::port } Do understand, however, that cross-module variable references are considered poor form by many, as they undermine modularity. Inter-class variable references are better limited to classes in the same module. John -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6b5f7df1-57b0-4e34-83c2-536c86e9889e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.