码迷,mamicode.com
首页 > 其他好文 > 详细

SalkStack安装 CentOS 6.6 x86_64

时间:2015-06-22 18:04:27      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:saltstack

一、Master端安装配置

 

1.系统版本

[root@salt-master ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@salt-master ~]# uname -a
Linux salt-master 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


2.安装epel源

[root@salt-master ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.VrDxXw: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed

 

3.安装salt-master

[root@salt-master ~]# yum install salt-master
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package salt-master.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: salt = 2015.5.0-1.el6 for package: salt-master-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package salt.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: python-zmq for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-requests for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-msgpack for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-jinja2 for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: m2crypto for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: PyYAML for package: salt-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package m2crypto.x86_64 0:0.20.2-9.el6 will be installed
---> Package python-jinja2.x86_64 0:2.2.1-2.el6_5 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.2.1-2.el6_5.x86_64
---> Package python-msgpack.x86_64 0:0.4.6-1.el6 will be installed
---> Package python-requests.noarch 0:1.1.0-4.el6.centos will be installed
--> Processing Dependency: python-urllib3 for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-ordereddict for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-chardet for package: python-requests-1.1.0-4.el6.centos.noarch
---> Package python-zmq.x86_64 0:14.3.1-1.el6 will be installed
--> Processing Dependency: libzmq.so.3()(64bit) for package: python-zmq-14.3.1-1.el6.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-chardet.noarch 0:2.0.1-1.el6.centos will be installed
---> Package python-ordereddict.noarch 0:1.1-2.el6.centos will be installed
---> Package python-urllib3.noarch 0:1.5-7.el6.centos will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.5-7.el6.centos.noarch
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-urllib3-1.5-7.el6.centos.noarch
---> Package zeromq3.x86_64 0:3.2.5-1.el6 will be installed
--> Processing Dependency: libpgm-5.1.so.0()(64bit) for package: zeromq3-3.2.5-1.el6.x86_64
--> Running transaction check
---> Package openpgm.x86_64 0:5.1.118-3.el6 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch
---> Package python-six.noarch 0:1.7.3-1.el6.centos will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-3.el6.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package                                 Arch       Version                  Repository   Size
===============================================================================================
Installing:
salt-master                             noarch     2015.5.0-1.el6           epel        862 k
Installing for dependencies:
PyYAML                                  x86_64     3.10-3.1.el6             updates     157 k
libyaml                                 x86_64     0.1.3-4.el6_6            updates      52 k
m2crypto                                x86_64     0.20.2-9.el6             base        471 k
openpgm                                 x86_64     5.1.118-3.el6            epel        165 k
python-babel                            noarch     0.9.4-5.1.el6            base        1.4 M
python-backports                        x86_64     1.0-3.el6.centos         extras      5.3 k
python-backports-ssl_match_hostname     noarch     3.4.0.2-4.el6.centos     extras       13 k
python-chardet                          noarch     2.0.1-1.el6.centos       extras      225 k
python-jinja2                           x86_64     2.2.1-2.el6_5            base        466 k
python-msgpack                          x86_64     0.4.6-1.el6              epel         69 k
python-ordereddict                      noarch     1.1-2.el6.centos         extras      7.7 k
python-requests                         noarch     1.1.0-4.el6.centos       extras       71 k
python-six                              noarch     1.7.3-1.el6.centos       extras       27 k
python-urllib3                          noarch     1.5-7.el6.centos         extras       41 k
python-zmq                              x86_64     14.3.1-1.el6             epel        467 k
salt                                    noarch     2015.5.0-1.el6           epel        4.0 M
zeromq3                                 x86_64     3.2.5-1.el6              epel        338 k
Transaction Summary
===============================================================================================
Install      18 Package(s)
Total download size: 8.8 M
Installed size: 32 M
Is this ok [y/N]: n 
Exiting on user Command
[root@salt-master ~]# yum install salt-master -y
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package salt-master.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: salt = 2015.5.0-1.el6 for package: salt-master-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package salt.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: python-zmq for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-requests for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-msgpack for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-jinja2 for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: m2crypto for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: PyYAML for package: salt-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package m2crypto.x86_64 0:0.20.2-9.el6 will be installed
---> Package python-jinja2.x86_64 0:2.2.1-2.el6_5 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.2.1-2.el6_5.x86_64
---> Package python-msgpack.x86_64 0:0.4.6-1.el6 will be installed
---> Package python-requests.noarch 0:1.1.0-4.el6.centos will be installed
--> Processing Dependency: python-urllib3 for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-ordereddict for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-chardet for package: python-requests-1.1.0-4.el6.centos.noarch
---> Package python-zmq.x86_64 0:14.3.1-1.el6 will be installed
--> Processing Dependency: libzmq.so.3()(64bit) for package: python-zmq-14.3.1-1.el6.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-chardet.noarch 0:2.0.1-1.el6.centos will be installed
---> Package python-ordereddict.noarch 0:1.1-2.el6.centos will be installed
---> Package python-urllib3.noarch 0:1.5-7.el6.centos will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.5-7.el6.centos.noarch
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-urllib3-1.5-7.el6.centos.noarch
---> Package zeromq3.x86_64 0:3.2.5-1.el6 will be installed
--> Processing Dependency: libpgm-5.1.so.0()(64bit) for package: zeromq3-3.2.5-1.el6.x86_64
--> Running transaction check
---> Package openpgm.x86_64 0:5.1.118-3.el6 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch
---> Package python-six.noarch 0:1.7.3-1.el6.centos will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-3.el6.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package                                 Arch       Version                  Repository   Size
===============================================================================================
Installing:
salt-master                             noarch     2015.5.0-1.el6           epel        862 k
Installing for dependencies:
PyYAML                                  x86_64     3.10-3.1.el6             updates     157 k
libyaml                                 x86_64     0.1.3-4.el6_6            updates      52 k
m2crypto                                x86_64     0.20.2-9.el6             base        471 k
openpgm                                 x86_64     5.1.118-3.el6            epel        165 k
python-babel                            noarch     0.9.4-5.1.el6            base        1.4 M
python-backports                        x86_64     1.0-3.el6.centos         extras      5.3 k
python-backports-ssl_match_hostname     noarch     3.4.0.2-4.el6.centos     extras       13 k
python-chardet                          noarch     2.0.1-1.el6.centos       extras      225 k
python-jinja2                           x86_64     2.2.1-2.el6_5            base        466 k
python-msgpack                          x86_64     0.4.6-1.el6              epel         69 k
python-ordereddict                      noarch     1.1-2.el6.centos         extras      7.7 k
python-requests                         noarch     1.1.0-4.el6.centos       extras       71 k
python-six                              noarch     1.7.3-1.el6.centos       extras       27 k
python-urllib3                          noarch     1.5-7.el6.centos         extras       41 k
python-zmq                              x86_64     14.3.1-1.el6             epel        467 k
salt                                    noarch     2015.5.0-1.el6           epel        4.0 M
zeromq3                                 x86_64     3.2.5-1.el6              epel        338 k
Transaction Summary
===============================================================================================
Install      18 Package(s)
Total download size: 8.8 M
Installed size: 32 M
Downloading Packages:
(1/18): PyYAML-3.10-3.1.el6.x86_64.rpm                                  | 157 kB     00:00    
(2/18): libyaml-0.1.3-4.el6_6.x86_64.rpm                                |  52 kB     00:00    
(3/18): m2crypto-0.20.2-9.el6.x86_64.rpm                                | 471 kB     00:00    
(4/18): openpgm-5.1.118-3.el6.x86_64.rpm                                | 165 kB     00:04    
(5/18): python-babel-0.9.4-5.1.el6.noarch.rpm                           | 1.4 MB     00:01    
(6/18): python-backports-1.0-3.el6.centos.x86_64.rpm                    | 5.3 kB     00:00    
(7/18): python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch |  13 kB     00:00    
(8/18): python-chardet-2.0.1-1.el6.centos.noarch.rpm                    | 225 kB     00:00    
(9/18): python-jinja2-2.2.1-2.el6_5.x86_64.rpm                          | 466 kB     00:00    
(10/18): python-msgpack-0.4.6-1.el6.x86_64.rpm                          |  69 kB     00:01    
(11/18): python-ordereddict-1.1-2.el6.centos.noarch.rpm                 | 7.7 kB     00:00    
(12/18): python-requests-1.1.0-4.el6.centos.noarch.rpm                  |  71 kB     00:00    
(13/18): python-six-1.7.3-1.el6.centos.noarch.rpm                       |  27 kB     00:00    
(14/18): python-urllib3-1.5-7.el6.centos.noarch.rpm                     |  41 kB     00:00    
(15/18): python-zmq-14.3.1-1.el6.x86_64.rpm                             | 467 kB     00:06    
(16/18): salt-2015.5.0-1.el6.noarch.rpm                                 | 4.0 MB     00:47    
(17/18): salt-master-2015.5.0-1.el6.noarch.rpm                          | 862 kB     00:10    
(18/18): zeromq3-3.2.5-1.el6.x86_64.rpm                                 | 338 kB     00:03    
-----------------------------------------------------------------------------------------------
Total                                                          111 kB/s | 8.8 MB     01:20    
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
From  : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : python-ordereddict-1.1-2.el6.centos.noarch                                 1/18
  Installing : python-six-1.7.3-1.el6.centos.noarch                                       2/18
  Installing : python-backports-1.0-3.el6.centos.x86_64                                   3/18
  Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch            4/18
  Installing : python-urllib3-1.5-7.el6.centos.noarch                                     5/18
  Installing : m2crypto-0.20.2-9.el6.x86_64                                               6/18
  Installing : libyaml-0.1.3-4.el6_6.x86_64                                               7/18
  Installing : PyYAML-3.10-3.1.el6.x86_64                                                 8/18
  Installing : python-msgpack-0.4.6-1.el6.x86_64                                          9/18
  Installing : python-chardet-2.0.1-1.el6.centos.noarch                                  10/18
  Installing : python-requests-1.1.0-4.el6.centos.noarch                                 11/18
  Installing : python-babel-0.9.4-5.1.el6.noarch                                         12/18
  Installing : python-jinja2-2.2.1-2.el6_5.x86_64                                        13/18
  Installing : openpgm-5.1.118-3.el6.x86_64                                              14/18
  Installing : zeromq3-3.2.5-1.el6.x86_64                                                15/18
  Installing : python-zmq-14.3.1-1.el6.x86_64                                            16/18
  Installing : salt-2015.5.0-1.el6.noarch                                                17/18
  Installing : salt-master-2015.5.0-1.el6.noarch                                         18/18
  Verifying  : openpgm-5.1.118-3.el6.x86_64                                               1/18
  Verifying  : PyYAML-3.10-3.1.el6.x86_64                                                 2/18
  Verifying  : python-babel-0.9.4-5.1.el6.noarch                                          3/18
  Verifying  : python-chardet-2.0.1-1.el6.centos.noarch                                   4/18
  Verifying  : python-msgpack-0.4.6-1.el6.x86_64                                          5/18
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch            6/18
  Verifying  : salt-2015.5.0-1.el6.noarch                                                 7/18
  Verifying  : libyaml-0.1.3-4.el6_6.x86_64                                               8/18
  Verifying  : python-ordereddict-1.1-2.el6.centos.noarch                                 9/18
  Verifying  : salt-master-2015.5.0-1.el6.noarch                                         10/18
  Verifying  : m2crypto-0.20.2-9.el6.x86_64                                              11/18
  Verifying  : python-urllib3-1.5-7.el6.centos.noarch                                    12/18
  Verifying  : python-zmq-14.3.1-1.el6.x86_64                                            13/18
  Verifying  : python-jinja2-2.2.1-2.el6_5.x86_64                                        14/18
  Verifying  : python-backports-1.0-3.el6.centos.x86_64                                  15/18
  Verifying  : python-requests-1.1.0-4.el6.centos.noarch                                 16/18
  Verifying  : zeromq3-3.2.5-1.el6.x86_64                                                17/18
  Verifying  : python-six-1.7.3-1.el6.centos.noarch                                      18/18
Installed:
  salt-master.noarch 0:2015.5.0-1.el6                                                         
Dependency Installed:
  PyYAML.x86_64 0:3.10-3.1.el6                                                                
  libyaml.x86_64 0:0.1.3-4.el6_6                                                              
  m2crypto.x86_64 0:0.20.2-9.el6                                                              
  openpgm.x86_64 0:5.1.118-3.el6                                                              
  python-babel.noarch 0:0.9.4-5.1.el6                                                         
  python-backports.x86_64 0:1.0-3.el6.centos                                                  
  python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos                           
  python-chardet.noarch 0:2.0.1-1.el6.centos                                                  
  python-jinja2.x86_64 0:2.2.1-2.el6_5                                                        
  python-msgpack.x86_64 0:0.4.6-1.el6                                                         
  python-ordereddict.noarch 0:1.1-2.el6.centos                                                
  python-requests.noarch 0:1.1.0-4.el6.centos                                                 
  python-six.noarch 0:1.7.3-1.el6.centos                                                      
  python-urllib3.noarch 0:1.5-7.el6.centos                                                    
  python-zmq.x86_64 0:14.3.1-1.el6                                                            
  salt.noarch 0:2015.5.0-1.el6                                                                
  zeromq3.x86_64 0:3.2.5-1.el6                                                                
Complete!

 

4.编辑配置文件

[root@salt-master ~]# vim /etc/salt/master
[root@salt-master ~]# egrep -v "^#|^$" /etc/salt/master
392:file_roots:
393:  base:
394:    - /etc/salt/states
395:  prod:
396:    - /etc/salt/states/proc

 

5.创建目录,启动服务,并设置为自启动

[root@salt-master ~]# mkdir -p /etc/salt/states/proc
[root@salt-master ~]# /etc/init.d/salt-master start
Starting salt-master daemon:                               [  OK  ]
[root@salt-master ~]# chkconfig salt-master on

 

二、Minion端安装配置

 

1.查看系统版本

[root@salt-minion ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@salt-minion ~]# uname -a
Linux salt-minion 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

 

2.安装epel源 

[root@salt-minion ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.aTuqqR: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed

 

3.安装salt-minion

[root@salt-minion ~]# yum install salt-minion -y
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package salt-minion.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: salt = 2015.5.0-1.el6 for package: salt-minion-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package salt.noarch 0:2015.5.0-1.el6 will be installed
--> Processing Dependency: python-zmq for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-requests for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-msgpack for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: python-jinja2 for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: m2crypto for package: salt-2015.5.0-1.el6.noarch
--> Processing Dependency: PyYAML for package: salt-2015.5.0-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package m2crypto.x86_64 0:0.20.2-9.el6 will be installed
---> Package python-jinja2.x86_64 0:2.2.1-2.el6_5 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.2.1-2.el6_5.x86_64
---> Package python-msgpack.x86_64 0:0.4.6-1.el6 will be installed
---> Package python-requests.noarch 0:1.1.0-4.el6.centos will be installed
--> Processing Dependency: python-urllib3 for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-ordereddict for package: python-requests-1.1.0-4.el6.centos.noarch
--> Processing Dependency: python-chardet for package: python-requests-1.1.0-4.el6.centos.noarch
---> Package python-zmq.x86_64 0:14.3.1-1.el6 will be installed
--> Processing Dependency: libzmq.so.3()(64bit) for package: python-zmq-14.3.1-1.el6.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-chardet.noarch 0:2.0.1-1.el6.centos will be installed
---> Package python-ordereddict.noarch 0:1.1-2.el6.centos will be installed
---> Package python-urllib3.noarch 0:1.5-7.el6.centos will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.5-7.el6.centos.noarch
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-urllib3-1.5-7.el6.centos.noarch
---> Package zeromq3.x86_64 0:3.2.5-1.el6 will be installed
--> Processing Dependency: libpgm-5.1.so.0()(64bit) for package: zeromq3-3.2.5-1.el6.x86_64
--> Running transaction check
---> Package openpgm.x86_64 0:5.1.118-3.el6 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch
---> Package python-six.noarch 0:1.7.3-1.el6.centos will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-3.el6.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package                                 Arch       Version                  Repository   Size
===============================================================================================
Installing:
salt-minion                             noarch     2015.5.0-1.el6           epel         24 k
Installing for dependencies:
PyYAML                                  x86_64     3.10-3.1.el6             updates     157 k
libyaml                                 x86_64     0.1.3-4.el6_6            updates      52 k
m2crypto                                x86_64     0.20.2-9.el6             base        471 k
openpgm                                 x86_64     5.1.118-3.el6            epel        165 k
python-babel                            noarch     0.9.4-5.1.el6            base        1.4 M
python-backports                        x86_64     1.0-3.el6.centos         extras      5.3 k
python-backports-ssl_match_hostname     noarch     3.4.0.2-4.el6.centos     extras       13 k
python-chardet                          noarch     2.0.1-1.el6.centos       extras      225 k
python-jinja2                           x86_64     2.2.1-2.el6_5            base        466 k
python-msgpack                          x86_64     0.4.6-1.el6              epel         69 k
python-ordereddict                      noarch     1.1-2.el6.centos         extras      7.7 k
python-requests                         noarch     1.1.0-4.el6.centos       extras       71 k
python-six                              noarch     1.7.3-1.el6.centos       extras       27 k
python-urllib3                          noarch     1.5-7.el6.centos         extras       41 k
python-zmq                              x86_64     14.3.1-1.el6             epel        467 k
salt                                    noarch     2015.5.0-1.el6           epel        4.0 M
zeromq3                                 x86_64     3.2.5-1.el6              epel        338 k
Transaction Summary
===============================================================================================
Install      18 Package(s)
Total download size: 8.0 M
Installed size: 32 M
Downloading Packages:
(1/18): PyYAML-3.10-3.1.el6.x86_64.rpm                                  | 157 kB     00:00    
(2/18): libyaml-0.1.3-4.el6_6.x86_64.rpm                                |  52 kB     00:00    
(3/18): m2crypto-0.20.2-9.el6.x86_64.rpm                                | 471 kB     00:00    
(4/18): openpgm-5.1.118-3.el6.x86_64.rpm                                | 165 kB     00:02    
(5/18): python-babel-0.9.4-5.1.el6.noarch.rpm                           | 1.4 MB     00:01    
(6/18): python-backports-1.0-3.el6.centos.x86_64.rpm                    | 5.3 kB     00:00    
(7/18): python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch |  13 kB     00:00    
(8/18): python-chardet-2.0.1-1.el6.centos.noarch.rpm                    | 225 kB     00:00    
(9/18): python-jinja2-2.2.1-2.el6_5.x86_64.rpm                          | 466 kB     00:00    
(10/18): python-msgpack-0.4.6-1.el6.x86_64.rpm                          |  69 kB     00:00    
(11/18): python-ordereddict-1.1-2.el6.centos.noarch.rpm                 | 7.7 kB     00:00    
(12/18): python-requests-1.1.0-4.el6.centos.noarch.rpm                  |  71 kB     00:00    
(13/18): python-six-1.7.3-1.el6.centos.noarch.rpm                       |  27 kB     00:00    
(14/18): python-urllib3-1.5-7.el6.centos.noarch.rpm                     |  41 kB     00:00    
(15/18): python-zmq-14.3.1-1.el6.x86_64.rpm                             | 467 kB     00:06    
(16/18): salt-2015.5.0-1.el6.noarch.rpm                                 | 4.0 MB     00:49    
(17/18): salt-minion-2015.5.0-1.el6.noarch.rpm                          |  24 kB     00:00    
(18/18): zeromq3-3.2.5-1.el6.x86_64.rpm                                 | 338 kB     00:05    
-----------------------------------------------------------------------------------------------
Total                                                          114 kB/s | 8.0 MB     01:11    
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-ordereddict-1.1-2.el6.centos.noarch                                 1/18
  Installing : python-backports-1.0-3.el6.centos.x86_64                                   2/18
  Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch            3/18
  Installing : python-six-1.7.3-1.el6.centos.noarch                                       4/18
  Installing : python-urllib3-1.5-7.el6.centos.noarch                                     5/18
  Installing : python-chardet-2.0.1-1.el6.centos.noarch                                   6/18
  Installing : python-requests-1.1.0-4.el6.centos.noarch                                  7/18
  Installing : m2crypto-0.20.2-9.el6.x86_64                                               8/18
  Installing : libyaml-0.1.3-4.el6_6.x86_64                                               9/18
  Installing : PyYAML-3.10-3.1.el6.x86_64                                                10/18
  Installing : python-msgpack-0.4.6-1.el6.x86_64                                         11/18
  Installing : python-babel-0.9.4-5.1.el6.noarch                                         12/18
  Installing : python-jinja2-2.2.1-2.el6_5.x86_64                                        13/18
  Installing : openpgm-5.1.118-3.el6.x86_64                                              14/18
  Installing : zeromq3-3.2.5-1.el6.x86_64                                                15/18
  Installing : python-zmq-14.3.1-1.el6.x86_64                                            16/18
  Installing : salt-2015.5.0-1.el6.noarch                                                17/18
  Installing : salt-minion-2015.5.0-1.el6.noarch                                         18/18
  Verifying  : openpgm-5.1.118-3.el6.x86_64                                               1/18
  Verifying  : PyYAML-3.10-3.1.el6.x86_64                                                 2/18
  Verifying  : python-babel-0.9.4-5.1.el6.noarch                                          3/18
  Verifying  : salt-minion-2015.5.0-1.el6.noarch                                          4/18
  Verifying  : python-msgpack-0.4.6-1.el6.x86_64                                          5/18
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch            6/18
  Verifying  : salt-2015.5.0-1.el6.noarch                                                 7/18
  Verifying  : libyaml-0.1.3-4.el6_6.x86_64                                               8/18
  Verifying  : python-ordereddict-1.1-2.el6.centos.noarch                                 9/18
  Verifying  : m2crypto-0.20.2-9.el6.x86_64                                              10/18
  Verifying  : python-urllib3-1.5-7.el6.centos.noarch                                    11/18
  Verifying  : python-zmq-14.3.1-1.el6.x86_64                                            12/18
  Verifying  : python-jinja2-2.2.1-2.el6_5.x86_64                                        13/18
  Verifying  : python-chardet-2.0.1-1.el6.centos.noarch                                  14/18
  Verifying  : python-requests-1.1.0-4.el6.centos.noarch                                 15/18
  Verifying  : zeromq3-3.2.5-1.el6.x86_64                                                16/18
  Verifying  : python-six-1.7.3-1.el6.centos.noarch                                      17/18
  Verifying  : python-backports-1.0-3.el6.centos.x86_64                                  18/18
Installed:
  salt-minion.noarch 0:2015.5.0-1.el6                                                         
Dependency Installed:
  PyYAML.x86_64 0:3.10-3.1.el6                                                                
  libyaml.x86_64 0:0.1.3-4.el6_6                                                              
  m2crypto.x86_64 0:0.20.2-9.el6                                                              
  openpgm.x86_64 0:5.1.118-3.el6                                                              
  python-babel.noarch 0:0.9.4-5.1.el6                                                         
  python-backports.x86_64 0:1.0-3.el6.centos                                                  
  python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos                           
  python-chardet.noarch 0:2.0.1-1.el6.centos                                                  
  python-jinja2.x86_64 0:2.2.1-2.el6_5                                                        
  python-msgpack.x86_64 0:0.4.6-1.el6                                                         
  python-ordereddict.noarch 0:1.1-2.el6.centos                                                
  python-requests.noarch 0:1.1.0-4.el6.centos                                                 
  python-six.noarch 0:1.7.3-1.el6.centos                                                      
  python-urllib3.noarch 0:1.5-7.el6.centos                                                    
  python-zmq.x86_64 0:14.3.1-1.el6                                                            
  salt.noarch 0:2015.5.0-1.el6                                                                
  zeromq3.x86_64 0:3.2.5-1.el6                                                                
Complete!

 

4.编辑配置文件

[root@salt-minion ~]# grep -vEn "^#|^$" /etc/salt/minion
16:master: salt-master    
54:id: salt-minion     

 

5.启动服务,并设置为自启动

[root@salt-minion ~]# /etc/init.d/salt-minion start
Starting salt-minion daemon:                               [  OK  ]
[root@salt-minion ~]# chkconfig salt-minion on

 

三、Master添加Minion

 

1.添加minion

[root@salt-master ~]# salt-key -L                  
Accepted Keys:
Denied Keys:
Unaccepted Keys:
salt-minion
Rejected Keys:
[root@salt-master ~]# salt-key -a salt-minion
The following keys are going to be accepted:
Unaccepted Keys:
salt-minion
Proceed? [n/Y] y
Key for minion salt-minion accepted.
[root@salt-master ~]# salt-key -L
Accepted Keys:
salt-minion
Denied Keys:
Unaccepted Keys:
Rejected Keys:

 

2.测试

[root@salt-master ~]# salt ‘salt-minion‘ test.ping          
salt-minion:
    True

本文出自 “我的IT生涯” 博客,请务必保留此出处http://3628905.blog.51cto.com/1164009/1664086

SalkStack安装 CentOS 6.6 x86_64

标签:saltstack

原文地址:http://3628905.blog.51cto.com/1164009/1664086

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!