변군이글루

[리눅스] SaltStack Install 본문

서___리눅스

[리눅스] SaltStack Install

변군 변군이글루 2017.10.17 22:11

SaltStack Install

 

[salt-master]
[root@saltstackcm104 ~]# yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm

[root@saltstackcm104 ~]# yum install salt-master

[root@saltstackcm104 ~]# systemctl restart salt-master

 

[root@saltstackcm104 ~]# vi /etc/salt/master
-----
interface: 192.168.28.104
-----

 

[root@saltstackcm104 ~]# salt-key -F master
Local Keys:
master.pem:  97:8a:5f:6b:ea:1d:b0:37:41:f4:b9:4f:52:a5:6c:22:3a:35:ef:33:6b:df:84:be:4e:21:5f:b5:9f:ee:5e:8c
master.pub:  77:78:47:7f:e7:35:28:57:2b:e3:06:3d:dd:8b:8c:97:61:d5:c7:9f:1e:41:4d:15:31:be:97:46:5c:30:36:ed
Unaccepted Keys:
saltstackmn105:  4c:b0:f9:52:c2:e4:3a:be:ea:60:a3:c2:5b:be:ed:10:bc:a6:53:b8:06:28:42:1f:fb:14:dd:fb:8f:c0:c0:f1

 

[root@saltstackcm104 ~]# salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
saltstackmn105
Rejected Keys:

 

[root@saltstackcm104 ~]# salt-key -A
The following keys are going to be accepted:
Unaccepted Keys:
saltstackmn105
Proceed? [n/Y] y
Key for minion saltstackmn105 accepted.

 

[root@saltstack cm104 ~]# salt-key -L
Accepted Keys:
saltstackmn105
Denied Keys:
Unaccepted Keys:
Rejected Keys:

 

[root@saltstackcm104 ~]# salt saltstackmn105 test.ping
saltstackmn105:
    True

 

[salt-minion]

[root@saltstackmn105 ~]# yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm

[root@saltstackmn105 ~]# yum -y install salt-minion

[root@saltstackmn105 ~]# systemctl restart salt-minion

 

[root@saltstackmn105 ~]# vi /etc/salt/minion
-----
master: 192.168.28.104
-----

 

[root@saltstackmn105 ~]# salt-call --local key.finger
local:
    4c:b0:f9:52:c2:e4:3a:be:ea:60:a3:c2:5b:be:ed:10:bc:a6:53:b8:06:28:42:1f:fb:14:dd:fb:8f:c0:c0:f1


http://repo.saltstack.com/#rhel
https://docs.saltstack.com/en/2015.8/ref/configuration/index.html

 

0 Comments
댓글쓰기 폼