Skip to content

Instantly share code, notes, and snippets.

@joeypiccola
Created May 20, 2020 05:42
Show Gist options
  • Save joeypiccola/103a8765827c0cb1a3fd45efa459a400 to your computer and use it in GitHub Desktop.
Save joeypiccola/103a8765827c0cb1a3fd45efa459a400 to your computer and use it in GitHub Desktop.
---
profile::base::localaccounts::groups:
Administrators:
members:
- mydomain\myuser
# profile::base::localaccounts
class profile::base::localaccounts (
Boolean $manage = true,
Hash $groups = {},
Hash $users = {},
) {
if ($manage) {
$groups.each | String $group, Hash $attributes | {
group { $group:
* => $attributes,
}
}
$users.each | String $user, Hash $attributes | {
user { $user:
* => $attributes,
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment