(inline) On Mon, Jul 16, 2012 at 11:19:02AM -0700, Jo Rhett wrote: > On Jul 16, 2012, at 8:42 AM, Felix Frank wrote: > > I cannot, of course, but I do sympathize with Jo's notion that in order > to solve the apparently small problem of making resource overrides > scale, he is now required to rework most if not all of his manifests to > play with a hiera based approach. > > Well, more matter of factly, that shifting to a hiera-based approach would > require us to manage very carefully the balance of data between puppet and > hiera, and manage by eyeball the dependencies between the two. There is > considerable resistance to this idea here. > If it was possible to put all the user and group information in hiera and > then put the assignment/management of that information into puppet then we > could probably manage that. But having to edit "this host gets the sql > server info" in puppet and then "these users get put in mysql group on > this host" in hiera is completely nonfunctional, and I've seen no examples > of ways to bridge that gap.
Possibly something like the following pseudocode example? The main point being to only include a puppet class if there's a certain piece of data in hiera. node default { if hiera('usemysql') { include mysql::service } if hiera_array('users') { include users } } (I haven't tested the above myself. We're still not using hiera at work, more's the pity.) > -- > Jo Rhett > Net Consonance : net philanthropy to improve open source and internet > projects. > > -- > 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. -- 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.