Skip to content

Instantly share code, notes, and snippets.

@adamcrews
Created October 14, 2013 22:37
Show Gist options
  • Save adamcrews/6983435 to your computer and use it in GitHub Desktop.
Save adamcrews/6983435 to your computer and use it in GitHub Desktop.
Sample Manifest
exec { 'Download Apache':
command => "powershell.exe -Command (new-object System.Net.WebClient).DownloadFile('http://archive.apache.org/dist/httpd/binaries/win32/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi', 'C:/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi')",
path => 'C:\Windows\System32\WindowsPowerShell\v1.0',
creates => 'C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi',
logoutput => true,
}
file { 'C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi':
owner => "EVIL\\Administrators",
group => "EVIL\\Administrators",
require => Exec['Download Apache'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment