Hi all I’ve got three classes (example):
``` class mymodule ( $user = 'foobar', ) {} class mymodule::classone ( $foo = 'bar', ) inherits ::mymodule::classone::params { require mymodule notify { "username: ${::mymodule::user}": } } class mymodule::classtwo ( $foo = 'bar', ) inherits ::mymodule::classtwo::params { require mymodule notify { "username: ${::mymodule::user}": } } class mymodule::classone::params {} class mymodule::classtwo::params {} ``` My idea is to have a class `mymodule` with parameters used by any other class. If someone would like to change the default parameters of `mymodule` he can do it like (or with hiera and autolookup): ``` class { ::mymodule: user => 'foo', } class { ::mymodule::classone: } ``` And for `classtone` and `classtwo` there is a specific `params.pp` (inherits)… My problem: the declaration above can cause dependency cycles… If `classone` gets used before class `mymodule`. :-( Do you have a better idea or design? Thanks for any input and your help! Julian -- 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/156F5D16-F2C8-423D-A565-4DBA089D24B7%40mailtower.ch. For more options, visit https://groups.google.com/d/optout.