Skip to content

Instantly share code, notes, and snippets.

@liamjbennett
Created November 12, 2013 20:38
Show Gist options
  • Save liamjbennett/7438246 to your computer and use it in GitHub Desktop.
Save liamjbennett/7438246 to your computer and use it in GitHub Desktop.
long powershell in puppet
exec {'VeryLongExec':
provider => powershell,
command => template("${module}/verylongexec")
}
or
#This is good for debugging
file { 'C:/Temp/VeryLongExec.ps1':
ensure => 'present',
source => 'puppet:///modulename/VeryLongExec.ps1'
}
exec {'VeryLongExec':
provider => powershell,
command => 'C:/Temp/VeryLongExec.ps1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment