On Thu, Aug 25, 2016 at 09:00:46AM -0700, Luke Bigum wrote: > On Thursday, 25 August 2016 13:31:17 UTC+1, Marc Haber wrote: > > So the "database" machine wouldn't have an entry in > > networking::interfaces at all, or could one define, for example, the > > management interface in networking::interfaces and the database > > interfaces in the machine-specific hiera tree? > > > > That's technically possible with our module, yes, although I personally > don't want to mix the styles.
I understand. > In my current profiles though I started with the management interfaces > inside the same software profiles. Turns out this was not the best idea as > they are not directly related, and what our roles should really look like > is this: > > ******************* > class role::database { > include profile::mandatory #Everything mandatory on > EL6 > include profile::authentication #Authentication is not > mandatory > include profile::database #The profile that does > most of the work for our software > class { 'profile::management': #management network > definition and dependent services (sshd, etc) > type => 'database' #but for a specific > type of machine > } > } > ******************* > > So management would be separate. This would allow me to do smarter ordering > of Puppet classes for management services like SSH (and remove a little bit > more Hiera glue). That looks smart, thanks. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- 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/20160826073850.GI2471%40torres.zugschlus.de. For more options, visit https://groups.google.com/d/optout.