天天看点

自动化运维工具之saltstack

今天试着在centos7上安装了saltstack自动化运维工具,以下是安装步骤:

首先,我们安装bash-completion包,它可以补全centos7的命令。

yum install -y bash-completion

关于服务的启动问题:

首先,设置服务开机自动启动:

systemctl enable salt-master

查看是否设置好开机启动:

systemctl is-enabled salt-master

启动服务:

systemctl restart salt-master

查看服务状态:

[root@localhost ~]# systemctl status salt-master

● salt-master.service - The Salt Master Server

   Loaded: loaded (/usr/lib/systemd/system/salt-master.service; enabled; vendor preset: disabled)

   Active: active (running) since Tue 2016-12-06 09:07:32 EST; 22min ago

 Main PID: 2734 (salt-master)

   CGroup: /system.slice/salt-master.service

           ├─2734 /usr/bin/python /usr/bin/salt-master

           ├─2741 /usr/bin/python /usr/bin/salt-master

           ├─2742 /usr/bin/python /usr/bin/salt-master

           ├─2743 /usr/bin/python /usr/bin/salt-master

           ├─2746 /usr/bin/python /usr/bin/salt-master

           ├─2747 /usr/bin/python /usr/bin/salt-master

           ├─2748 /usr/bin/python /usr/bin/salt-master

           ├─2751 /usr/bin/python /usr/bin/salt-master

           ├─2752 /usr/bin/python /usr/bin/salt-master

           ├─2755 /usr/bin/python /usr/bin/salt-master

           └─2756 /usr/bin/python /usr/bin/salt-master

Dec 06 09:07:31 localhost.localdomain systemd[1]: Starting The Salt Master Server...

Dec 06 09:07:32 localhost.localdomain systemd[1]: Started The Salt Master Server.

本文转自chenzudao51CTO博客,原文链接: http://blog.51cto.com/victor2016/1880180,如需转载请自行联系原作者