반응형
SaltStack Install
[salt-master:saltstackcm104]
yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
yum install salt-master
systemctl restart salt-master
vi /etc/salt/master
interface: 192.168.28.104
salt-key -F master
$ 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
salt-key -L
$ salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
saltstackmn105
Rejected Keys:
salt-key -A
$ salt-key -A
The following keys are going to be accepted:
Unaccepted Keys:
saltstackmn105
Proceed? [n/Y] y
Key for minion saltstackmn105 accepted.
salt-key -L
$ salt-key -L
Accepted Keys:
saltstackmn105
Denied Keys:
Unaccepted Keys:
Rejected Keys:
salt saltstackmn105 test.ping
$ salt saltstackmn105 test.ping
saltstackmn105:
True
[salt-minion:saltstackmn105]
yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
yum -y install salt-minion
systemctl restart salt-minion
vi /etc/salt/minion
master: 192.168.28.104
salt-call --local key.finger
$ 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
참고URL
- http://repo.saltstack.com/#rhel
- https://docs.saltstack.com/en/2015.8/ref/configuration/index.html
728x90
반응형
'리눅스' 카테고리의 다른 글
CentOS 7에서 멀티 IP 주소를 설정하는 방법(IP Aliases) (0) | 2017.12.01 |
---|---|
iconv 명령어 (1) | 2017.11.06 |
리눅스에서 2TB 이상 디스크를 사용하기(GPT 파티션 방식 사용) (0) | 2017.09.26 |
CentOS 7 Anacron 란 (0) | 2017.08.18 |
KVM에서 스냅샷 생성, 복원 및 삭제하기 (0) | 2017.08.17 |