Skip to content

Instantly share code, notes, and snippets.

@innyso
Last active December 23, 2015 11:56
Show Gist options
  • Save innyso/fd4de94b6c045a2fd6d0 to your computer and use it in GitHub Desktop.
Save innyso/fd4de94b6c045a2fd6d0 to your computer and use it in GitHub Desktop.
puppet create_resources checklist
  1. make sure the hiera value has the following structure
users:
  mary:
    group: admin
    alias: m123
  mark:
    group: user
    alias: m456
  1. make sure the resource to be create is a define not a class
# sample code

$users = hiera('users')
create_resources($users)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment