On 10/2/2008 2:15 PM, dd-b wrote: > I could have a script, check whether I'd edited sendmail.mc, edit it > if needed, and run make in /etc/mail. That doesn't somehow sound very > "puppety", if I'm getting any feel for how puppet really intends > things to work.
http://www.cfwiki.org/cfwiki/index.php/Editfiles_Considered_Harmful may be a good starting point for one point of view (i.e., that editing config files on the client systems can be a problem for auditing and other things). The alternative would be to have one or more sendmail.mc files on the puppetmaster, edit them manually, and let puppet pull down the new mc file, and then automatically run make afterwards. Something like: file { "/etc/mail/sendmail.mc": source => "puppet:///sendmail/sendmail.mc" } exec { "make": cwd => "/etc/mail", path => ["/bin", "/usr/bin" ], refreshonly => true, subscribe => File["/etc/mail/sendmail.mc"], } which is generally copied from refreshonly part of http://reductivelabs.com/trac/puppet/wiki/TypeReference#exec -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---