salt里定义账号和公钥

salt可以支持账号的增加以及ssh的公钥管理

user_add:
user.present:
- uid: 1000
- name: myuser
- groups:
- myuser
group_add:
group.present:
- gid: 1000
- name: myuser
- require_in:
- user: user_add
user_sshkey:
ssh_auth.present:
- user: myuser
- names:
- 'ssh-rsa XXXXXX'
- 'ssh-rsa yyyyyy'
- require:
- user:  user_add
此条目发表在System分类目录。将固定链接加入收藏夹。