SaltStack之salt-key管理
生活随笔
收集整理的這篇文章主要介紹了
SaltStack之salt-key管理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
SaltStack之salt-key管理
環境: OS: CentOS6.5 x64 Master:? salt-master.example.com Minion:? salt-minion1.example.com salt-minion2.example.com
參考文檔: http://docs.saltstack.cn/zh_CN/latest/topics/tutorials/walkthrough.html#minion-id-generation
1.刪除salt-key 刪除指定minion的key salt-key -d salt-minion2.example.com 刪除所有minion的key salt-key -D -y
2.minion配置文件指定salt-key minion配置文件直接指定salt-key(通過id:字段),優先級最高
當minion啟動后,它會產生一個id值,除非已經在之前的運行過程中產生過并且緩存在配置路徑下,默認是/etc/salt/minion_id 如果,minion_id己經生成,則優先讀取該緩存,如果發現有重名的,可以直接刪除/etc/salt/minion_id后重啟minion服務,這里便會根據salt-key生成規則重新生成
3.查看salt-key 指紋信息和內容
4.生成新的key-pair root@salt-master:~#salt-key --auto-create --gen-signature Generating new signing key-pair master_sign.* in /etc/salt/pki/master Using public-key /etc/salt/pki/master/master.pub Using private-key /etc/salt/pki/master/master_sign.pem
5.master自動接受所有salt-key Master端配置文件/etc/salt/master # Enable auto_accept, this setting will automatically accept all incoming # public keys from the minions. Note that this is insecure. auto_accept: True
環境: OS: CentOS6.5 x64 Master:? salt-master.example.com Minion:? salt-minion1.example.com salt-minion2.example.com
參考文檔: http://docs.saltstack.cn/zh_CN/latest/topics/tutorials/walkthrough.html#minion-id-generation
1.刪除salt-key 刪除指定minion的key salt-key -d salt-minion2.example.com 刪除所有minion的key salt-key -D -y
2.minion配置文件指定salt-key minion配置文件直接指定salt-key(通過id:字段),優先級最高
當minion啟動后,它會產生一個id值,除非已經在之前的運行過程中產生過并且緩存在配置路徑下,默認是/etc/salt/minion_id 如果,minion_id己經生成,則優先讀取該緩存,如果發現有重名的,可以直接刪除/etc/salt/minion_id后重啟minion服務,這里便會根據salt-key生成規則重新生成
3.查看salt-key 指紋信息和內容
4.生成新的key-pair root@salt-master:~#salt-key --auto-create --gen-signature Generating new signing key-pair master_sign.* in /etc/salt/pki/master Using public-key /etc/salt/pki/master/master.pub Using private-key /etc/salt/pki/master/master_sign.pem
5.master自動接受所有salt-key Master端配置文件/etc/salt/master # Enable auto_accept, this setting will automatically accept all incoming # public keys from the minions. Note that this is insecure. auto_accept: True
轉載于:https://www.cnblogs.com/lixuebin/p/10814294.html
總結
以上是生活随笔為你收集整理的SaltStack之salt-key管理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VC中实现GCC的2个比较常用的位运算函
- 下一篇: 276.Paint Fence