Closed decibelhertz closed 7 years ago
I thought about this and decided to do it the way it is currently implemented:
sendmail.mc
to a correspondingsendmail::mc::feature
resource to make the outcome more clear.sendmail::mc::feature
accept additional parameters. Declaring a resource once with parameters and once without (using ensure_resource
) might result in an undefined behaviour (e.g. depending on manifest parse order).Maybe an update to the README should be the first step.
Sure. A README example would do just fine. I can do a PR or leave it you.
I don't have a strong feeling about changing this, but for completeness: I knew there was a reason I wanted the auto-include. Its because Puppet Labs does something like that in their Apache module. If you call certain features, it auto-includes the modules to make them work. See https://github.com/puppetlabs/puppetlabs-apache/blob/master/manifests/vhost.pp#L318-L342 for an example.
I presently need to do add a
sendmail::mc::feature
this to getsendmail::access::entry
to work, E.G.:It took me a while to figure out, so in the interest of saving others time, I'll ask: should
sendmail::access::file
containsendmail::mc::feature { 'access_db': }
(orensure_resource('sendmail::mc::feature','access_db')
) in order to avoid that? My initial take is that if you're setting something in the access_db, you want it working automatically, but I may be missing some context.