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

How to prepare the hiera yaml file for auth_config in templates/realm.properties.erb #78

Closed
ozbillwang opened this issue May 25, 2015 · 3 comments

Comments

@ozbillwang
Copy link
Contributor

I need prepare hiera yaml file for template realm.properties.erb

rundeck::params::auth_config:
    file:
       admin_user: admin
       admin_password: password
       auth_users: ['user1', 'user2']
      ???
      ???

Seems it doesn't work. For example, I need set /etc/rundeck/realm.properties to

admin:password,user,admin,architect,deploy,build
user1:abc,user,deploy
user2:xyz,admin

So could you please share me the sample of hiera yaml file for this setting?

@ozbillwang
Copy link
Contributor Author

This works for me, thanks @liamjbennett

rundeck::auth_config:
  file:
    auth_users:
      - username: 'puppet'
        password: 'puppet'
        roles:
          - user
          - admin
          - architect
          - deploy
          - build

@ozbillwang
Copy link
Contributor Author

@liamjbennett

How to use with ldap? This doesn't work for me

rundeck::auth_type: 'ldap'
rundeck::auth_config:
  ldap:
     url: 'ldap://ldapserver'
     server: ldapserver
     port: 389

@ozbillwang
Copy link
Contributor Author

Finally I made it work

rundeck::auth_types:
   - 'ldap'                          # this key has to be array.
rundeck::auth_config:
  ldap:
    server: 'server-01.corp.company.com'
    port:   '389'
    bind_dn: 'CN=x,CN=Users,DC=corp,DC=company,DC=com'
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant