Created
August 25, 2014 23:38
-
-
Save joshcooper/ecf88f45a7591686ba2f to your computer and use it in GitHub Desktop.
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 acl { | |
acl { 'c:/temp': | |
owner => 'SYSTEM', | |
group => 'Administrators', | |
inherit_parent_permissions => 'false', | |
permissions => [ { 'identity' => 'BUILTIN\Administrators', 'rights' => ['full'] } ] | |
} | |
} | |
class registry { | |
registry_key { 'HKLM\Software\Puppet Labs': | |
ensure => present | |
} | |
registry_value { 'HKLM\Software\Puppet Labs\array': | |
ensure => present, | |
type => array, | |
data => ['one', 'two'], | |
} | |
registry_value { 'HKLM\Software\Puppet Labs\expand': | |
ensure => present, | |
type => expand, | |
data => '%SYSTEMROOT%', | |
} | |
registry_value { 'HKLM\Software\Puppet Labs\binary': | |
ensure => present, | |
type => binary, | |
data => 'DE AD BE EF 01 23 45 67 89', | |
} | |
} | |
class powershell { | |
exec { 'Write $env:PATH': | |
provider => powershell, | |
logoutput => true | |
} | |
} | |
class reboot { | |
notify { 'now': | |
} ~> | |
reboot { 'now': | |
} | |
} | |
include acl | |
include powershell | |
include reboot | |
include registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment