The scenario is installing Windows applications with Puppet on a Windows RDP server. I have Puppet install the applications without problem, but per the best practice, you're supposed to be in install
mode when doing so, and switching back to execute
mode.
I can do the following and it works:
package {'Adobe AIR':
ensure => '15.0.0.356',
source => '\\myserver\adobeair.exe',
install_options => ['-silent', '-eulaAccepted'],
require => Exec['installmode'],
before => Exec['executemode'],
}
exec {'installmode':
command => 'c:/Windows/System32/change.exe user /install',
}
exec {'executemode':
command => 'c:/Windows/System32/change.exe user /execute',
}
What I'm trying to solve here is that everytime Puppet runs, it considers that something was done as the two Exec
run each time regardless if the application really install or not.
I would like to silence the execution of Exec
, or find a better way to switch between install
and execute
mode.