I'd like to be able to use the file resource to CONDITIONALLY copy files.
The example in a previous post was to copy a large binary install file
to the puppet client. However once the installation has taken place I'd
really prefer not to leave this file on the client.

One thought I had was to have an unless method/attribute in the file
type which would allow us to disable the configured file behaviour:

For example:

file { "/my/file":
    source => "/path/to/my/file",
    unless => "/usr/bin/test -d /final/install/directory",
    notify => Exec[install_script]
}

exec { "install_script":
    ...
}

This seems like it would provide a nice easy way to run custom install
scripts and only copy over the files once. The install script would
clean up afterwards.

I don't think this is something puppet can do now but would it be a
useful addition?

Simon

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