【发布时间】:2017-03-25 00:12:04
【问题描述】:
我遇到了 Master/Minion 指纹不匹配的问题。
我的 Salt Master 在 Ubuntu 16.04 服务器上。
Minion #1 在第二台 Ubuntu 16.04 服务器上。
Minion #2 在 Redhat 7.3 服务器上。
所有这 3 台服务器都是 AWS EC2 的。
两个minion都已成功连接到master。并且 Ubuntu Master 看到了 Ubuntu Minion #1 的正确指纹...
但是,当我在 Ubuntu Master 上运行此程序时,Ubuntu Master 和 Redhat Minion #2 显示不同的指纹:
$ sudo salt-key -f ip-xxx-xx-x-xx.ec2.internal << for Redhat Minion #2 ... the actual IP address is masked here >>
Ubuntu Master 的安装步骤如下:
$ sudo apt update -y
$ sudo apt upgrade -y
$ sudo apt update -y
$ wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
$ sudo apt update -y
$ sudo apt install salt-master
$ sudo systemctl restart salt-master
Ubuntu Minion #1 的安装步骤是:
$ sudo apt update -y
$ sudo apt upgrade -y
$ sudo apt update -y
$ wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
$ sudo apt update -y
$ sudo apt install salt-minion
$ sudo systemctl restart salt-minion
$ sudo nano /etc/salt/minion
<< I made two changes to the file: (1) master = master's IP address, and (2) master_finger = master's fingerprint >>
$ sudo service salt-minion restart
Redhat Minion #2 的安装步骤是:
$ sudo yum update -y
$ sudo yum upgrade -y
$ sudo yum update -y
$ sudo yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-1.el7.noarch.rpm
$ sudo yum install salt-minion
$ sudo yum install nano
$ sudo nano /etc/salt/minion
<< I made two changes to the file: (1) master = master's IP address, and (2) master_finger = master's fingerprint >>
$ sudo service salt-minion restart
这些说明来自 Salt 文档。
https://repo.saltstack.com/#ubuntu
https://repo.saltstack.com/#rhel
所以我不确定断开连接是什么。我还尝试通过sudo add-apt-repository ppa:saltstack/salt 安装 Ubuntu master 和 minions。但这产生了相同的结果。
作为最后的努力,我只是尝试 ping Redhat Minion #2(在接受它的密钥之后),但它没有返回响应......但是,Ubuntu Minion #1 确实返回了响应,所以这是' t 一般连接问题。
我似乎无法通过 google 或 SO 搜索找到太多信息。你们中是否有人使用不同的操作系统(特别是 Ubuntu 和 Redhat)运行 master 和 minion?你们中有人遇到过这个问题吗?
谢谢
【问题讨论】:
标签: ubuntu key redhat fingerprint salt-stack