using the pe_accounts module with hiera

流过昼夜 提交于 2019-12-13 04:23:42

问题


I need to be able to manage user accounts using pe_accounts and hiera. This page: http://docs.puppetlabs.com/pe/latest/accounts_class.html#usage-example says I can create a module like site_accounts and add this text

class {'pe_accounts':
  data_store => yaml,
}

to site_accounts/manifests/init.pp and then install this syntax

---
sysop:
  locked: false
  comment: System Operator
  uid: '700'
  gid: '700'
  groups:
  - admin
  - sudonopw

into a file named /var/lib/hiera/pe_accounts_users_hash.yaml

and this will be enough to add the user sysop. But it's not, of course. I did add the below syntax to hiera.conf

:hierarchy:
  - "common"
  - "pe_accounts_users_hash"
  - "pe_accounts_group_hash"

The error I keep getting is:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class pe_accounts for vmtest2.lala.kaka.org

来源:https://stackoverflow.com/questions/24500452/using-the-pe-accounts-module-with-hiera

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!