Skip to content

Instantly share code, notes, and snippets.

@rafalf
Created May 20, 2014 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalf/8b9fb085dd3de98dbd5b to your computer and use it in GitHub Desktop.
Save rafalf/8b9fb085dd3de98dbd5b to your computer and use it in GitHub Desktop.
puppet: execute web_config.ps1 powershell script.
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,
}
}
@rafalf
Copy link
Author

rafalf commented May 20, 2014

The default timeout in puppet is set to 300s (5 mins). In order to increase the time out, set: timeout => 1800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment