Saltstack取付使用
9357 ワード
Saltstackはpppetとfunc機能を備えた集中化で、軽量級の自動化された運営・維持管理ツールで、pythonを使って編纂します。pppetと比べると、設置や配置がより簡単です。
EPEL Install
1、salt-masterを設置する(マスター本体のみに取り付ける)
2、配置Saltstack
EPEL Install
[root@ipython ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ###CentOS 5.x### rpm -Uvh https://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
1、salt-masterを設置する(マスター本体のみに取り付ける)
[root@ipython ~]# yum -y install salt-master salt ####salt-minmion ### [root@ipython ~]# yum -y install salt-minion
2、配置Saltstack
##############salt-Master################## [root@ipython ~]# awk '!/^[\ ]$/' /etc/salt/master # salt , salt # user: root #s alt , , CPU # worker_threads: 10 # master # publish_port : 4505 # master minion , , , # ret_port : 4506 # master salt-syndic master, master # syndic_master_port : 4506 # pid # pidfile: /var/run/salt-master.pid # saltstack # root_dir: / # # log_file: /var/log/salt_master.log # # nodegroups: group_all: '*' # salt state # file_roots: base: - /etc/salt/file # pillar # pillar_roots: base: - /etc/salt/pillar ##############salt-Minion################## [root@ipython ~]# awk '!/^[\ ]$/' /etc/salt/minion # minion ID, IP, , DNS # id: 192.168.1.99 # salt # user: root # master ID, IP, , DNS # master : 192.168.1.99 # master # master_port: 4506 # ,minion , # backup_mode: minion # salt-call # output: nested # minion master # acceptance_wait_time: 10 # ,0 , # acceptance_wait_time_max: 0 # , master key minion syn # random_reauth_delay: 60 # # log_file: /var/logs/salt_minion.log # # file_roots: base: - /etc/salt/minion/file # pillar # pillar_roots: base: - /data/salt/minion/pillar ##### SaltStack##### [root@ipython ~]# service salt-master start Starting salt-master daemon: [ OK ] [root@ipython ~]# service salt-minion start Starting salt-minion daemon: [ OK ] OR [