ITPub博客

首页 > Linux操作系统 > Linux操作系统 > puppet自动认证授权

puppet自动认证授权

原创 Linux操作系统 作者:wang_0720 时间:2013-12-02 14:17:28 0 删除 编辑
puppet自动授权认证后可以自动化地为每个agent签发证书,不需要手动执行
在puppet服务端的主配置文件中添加以下语句
[root@master puppet]# cat puppet.conf |grep autosign
    # Whether to enable autosign.  Valid values are true (which
    # autosigns any key request, and is a very bad idea), false (which
    # never autosigns any key request), and the path to a file, which
    # The default value is '$confdir/autosign.conf'.
    autosign = /etc/puppet/autosign.conf
    autosign = true
    autosign = /etc/puppet/autosign.conf
添加autosign.conf文件
[root@master puppet]# cat autosign.conf
*.andy.com
允许所有andy.com域下的主机
删除失效证书
puppet cert --clean agent3.andy.com
client端删除认证
rm -rf /var/lib/puppet/ssl/*
重新请求证书
puppet agent --server master.andy.com --test

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27181165/viewspace-1061844/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-11-05

  • 博文量
    111
  • 访问量
    953137