saltstack简单介绍和安装
查看未接受的key# salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
hddcluster1
hddcluster2
hddcluster4
salt-master
salt-minion01
Rejected Keys:
一键接受所有key:
# salt-key -A -y
The following keys are going to be accepted:
Unaccepted Keys:
hddcluster1
hddcluster2
hddcluster3
hddcluster4
salt-master
salt-minion01
Key for minion hddcluster1 accepted.
Key for minion hddcluster2 accepted.
Key for minion hddcluster3 accepted.
Key for minion hddcluster4 accepted.
Key for minion salt-master accepted.
Key for minion salt-minion01 accepted.
# salt-key -L
Accepted Keys:
hddcluster1
hddcluster2
hddcluster3
hddcluster4
salt-master
salt-minion01
Denied Keys:
Unaccepted Keys:
Rejected Keys:
测试一下:
# salt'*' grains.item fqdn_ip4
salt-master:
----------
fqdn_ip4:
- 10.0.0.177
hddcluster4:
----------
fqdn_ip4:
- 10.0.0.181
hddcluster3:
----------
fqdn_ip4:
- 10.0.0.202
hddcluster1:
----------
fqdn_ip4:
- 10.0.0.197
hddcluster2:
----------
fqdn_ip4:
- 10.0.0.102
salt-minion01:
----------
fqdn_ip4:
- 10.0.0.199
页:
[1]