refreshonly and notify are your friends.

file { 'zipfile':
  notify Exec['unzip'],
  source => 'file:///downloads/someZipFile.zip'
}

exec { 'unzip zipfile -d /some/file':
  alias => 'unzip',
  refreshonly => true,
  notify => Exec['installer']
}

exec { '/some/file/setup.exe /a':
  alias => 'installer',
  refreshonly => true
}

Nice thing about this setup is if you change the local zip file, it'll 
redownload, extract and run setup again, making a nice upgrade / reinstall 
process.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6cbefb68-476c-4eb8-bbca-e6a50a66d12c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to