I'm still ramping up on Puppet 5.4.0, but I'm stuck on something.
I have a customer needing to automate installation of a software package on Windows nodes. The installer is most easily transported as a .zip file, but (obviously) would need to be unzipped before running the enclosed .bat file to perform the installation.
I'm not 100% sure on the usage for puppet/archive in this use case.
Thanks
ty
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
}