paul matthews wrote:

> Thanks for the reply. Our set up here is slightly odd in that I need to run
> a security tool which creates motd and then the puppet part adds a few more
> lines with some extra variables.

Alternatively to exec, you could:

1) let the security tool fix the motd once

2) copy it to the puppetmaster and convert it into a template with your 
extra lines

3) change your puppet manifests to only deploy the new motd template if 
there's evidence the security script has run. Something like:

   file { "/etc/motd":
     content => template("motd.erb"),
     onlyif  => "test -f /path/to/evidence_log"
   }

would be simple, integrating your security tool into your puppet 
manifests would be another way.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to