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