Created
May 20, 2014 14:08
-
-
Save rafalf/8b9fb085dd3de98dbd5b to your computer and use it in GitHub Desktop.
puppet: execute web_config.ps1 powershell script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class web_config{ | |
# c:\windows\sysnative\windowspowershell\v1.0\powershell.exe - forces 64-bit PS | |
# https://tickets.puppetlabs.com/browse/MODULES-953 | |
exec { 'exec web_config.ps1': | |
command => 'c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -executionpolicy remotesigned -file C:\ProgramData\PuppetLabs\puppet\etc\modules\web_config\manifests\web_config.ps1', | |
logoutput => true, | |
timeout => 1800, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default timeout in puppet is set to 300s (5 mins). In order to increase the time out, set: timeout => 1800