Skip to content

Instantly share code, notes, and snippets.

@joshcooper
Created August 25, 2014 23:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshcooper/ecf88f45a7591686ba2f to your computer and use it in GitHub Desktop.
Save joshcooper/ecf88f45a7591686ba2f to your computer and use it in GitHub Desktop.
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