>
> 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.
>
I don't believe this will work as the onlyif attribute is only
available for the exec type. But something similiar using the generate
function might work.

file { "/etc/motd":
     content =>generate (<script that runs the security tool server
side then cats on the extra lines>) ,
   }

Of course the security tool may not work as a server side run, but
this might give you an idea to work with.

Evan

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