On Jul 16, 2012, at 11:55 AM, Christopher Wood wrote: > 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'm not sure how this would work. So you're now talking about putting all the if/then logic inside hiera? > (I haven't tested the above myself. We're still not using hiera at work, > more's the pity.) We aren't, because we have no external datasource for this stuff and every example we've seen (like yours above) indicates that we're going to have to put half of the logic engine of puppet inside the data source, which means it needs to be a very complex thing that enforces the structure and somehow ties it with the puppet logic. Our analysis so far is that to implement hiera we're going to have to write our own software platform which manages hiera data and writes out puppet policies on the fly when the data changes. -- 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.