Saltstack using pillar to install configuration management Zabbix

Source: Internet
Author: User

1.zabbix Installation

zabbix-2.2.1-1.el5.x86_64.rpm
zabbix-agent-2.2.1-1.el5.x86_64.rpm

2. View/etc/salt/master's configuration on File_roots and Pillar_roots

file_roots:  Base:    -/srv/salt/  Dev:    -/srv/salt/dev/   prod:     -/srv/salt/prod/pillar_roots:  Base:    -/srv/pillar  Dev:     -/srv/pillar/Dev  prod:    -/srv/pillar/prod

3. Add files about zabbix_agent in the Top.sls file

[[email protected] salt] #  Base:  '*':    - init.apache    -  Init.history    - init.sysctl    -init.zabbix_agent   #zabbix_agent存放路径为/srv/salt/ Init/zabbix_agent, the configuration file that needs to be managed in/srv/salt/files/zabbix_agentd.conf

4. There is also a Top.sls file inside the pillar.

[[email protected] pillar] #  Base:  '*':    -Zabbix

5. Add Zabbix.sls files to the/srv/pillar/directory underground

[[email protected] pillar] #  zabbix-agent-key:  zabbix_server_value  192.168.144.49

6. Add Zabbix_agent.sls below the/srv/salt/init/directory

 zabbix-agent:file.managed: -Name:/etc/zabbix/zabbix_agentd.conf -Source:salt://files/zabbix_agentd.conf - Template:jinja - defaults: zabbix _server : {{pillar[  '  

7. Find the option to modify in the/srv/salt/files/zabbix_agentd.conf file

zabbix_server }}

8. The same color is the corresponding relationship

Saltstack using pillar to install configuration management Zabbix

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.