add something like
notify => Exec["myapp::decompress"],
to your file resource
also, according to the documentation, for a file resource the ensure
parameter
possible values are *absent*, *present*, *file*, and *directory*
I'm not sure what latest is going to do there, but you don't need it, just
class filecheck {
include myapp
file { "puppet:///modules/myapp/MyApp_GA.tar.gz":
owner => 'myapp',
group => 'myapp',
ensure => latest,
path => "/opt/apps/myapp/artifacts/MyApp_GA.tar.gz",
}
}
class myapp::decompress {
exec { "myapp::decompress":
owner => 'myapp',
The file ensure for the tar file should only download when it changes
The untar can have a require on the file resource, and so on
Can you post your file resource and untar exec resource?
On Wed, Apr 25, 2012 at 5:51 PM, Suresh wrote:
> Can you guys please help me address this host configuratio
Can you guys please help me address this host configuration?
1) I have 5 different modules that need to be installed to each host/agent
1.1) from one of the modules, a large application tar file is downloaded by
agent and performs untar to required folder structure.
1.2) before the "untar", requi