Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating multiple users using different classifications doesn't work? #24

Closed
jceloria opened this issue Apr 27, 2015 · 1 comment
Closed
Labels

Comments

@jceloria
Copy link

I am having trouble creating different users in different environments using hiera classifications.

hiera.yaml:
https://gist.github.com/jceloria/790ca984847166c83ffa#file-hiera-yaml

defaults.yaml:
https://gist.github.com/jceloria/6b5c9606418e37999e07#file-defaults-yaml

hostA.yaml:
https://gist.github.com/jceloria/9af876cabd8682469d9b#file-hosta-yaml

Unless I put all users in the same accounts:users stanza then only the first matching classification in this case (defaults.yaml) and the rest of the user accounts are ignored.

@zahaim
Copy link

zahaim commented Oct 12, 2015

Hello,

If you are still interested I managed to solve this problem by modyfing init.pp in the following way:

# Puppet accounts management
#
class accounts(
  $manage_users  = true,
  $manage_groups = true,
#  $users         = {},
#  $groups        = {},
) {

  $users = hiera_hash('accounts::users', {})
  $groups = hiera_hash('accounts::groups', {})

(...)

@deric deric added the bug label Feb 2, 2016
@deric deric closed this as completed in fc0f72a Feb 2, 2016
deric added a commit that referenced this issue Feb 2, 2016
Allow multiple users creation from hiera settings in different hierarchy, fix #24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants