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.
I created PUP-3979 for you.
This would need to run when a server is configured with Remote Desktop Services (whether executing install locally or from a remote session):
From TechNet: Install Programs on an RD Session Host Server