-
Notifications
You must be signed in to change notification settings - Fork 119
/
pillar.example
181 lines (169 loc) · 5.12 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
zabbix:
# Overrides map.jinja
# lookup:
# agent:
# version: xxx
# frontend:
# version: xxx
# server:
# version: xxx
tofs:
# The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern
# doc for more info.
# Note: Any value not evaluated by `config.get` will be used literally.
# This can be used to set custom paths, as many levels deep as required.
# files_switch:
# - any/path/can/be/used/here
# - id
# - roles
# - osfinger
# - os
# - os_family
# All aspects of path/file resolution are customisable using the options below.
# This is unnecessary in most cases; there are sensible defaults.
# Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
# I.e.: salt://template/files/default
# path_prefix: template_alt
# dirs:
# files: files_alt
# default: default_alt
# The entries under `source_files` are prepended to the default source files
# given for the state
source_files:
zabbix-agent-config:
- '/etc/zabbix/alt_zabbix_agentd.conf'
zabbix-frontend-config:
- '/etc/zabbix/web/alt_zabbix.conf.php'
zabbix-server-mysql:
- '/usr/share/zabbix-server-mysql/alt_salt-provided-create-34.sql'
zabbix-server-pgsql:
- '/usr/share/doc/zabbix-server-pgsql/alt_custom.sql.gz'
zabbix-proxy-config:
- '/etc/zabbix/alt_zabbix_proxy.conf'
zabbix-server-config:
- '/etc/zabbix/alt_zabbix_server.conf'
# Zabbix user has to be member of some groups in order to have permissions to
# execute or read some things
user_groups:
- adm
zabbix-agent:
server:
- localhost
serveractive:
- localhost
listenip: 0.0.0.0
listenport: 10050
hostmetadata: c9767034-22c6-4d3d-a886-5fcaf1386b77
logfile: /var/log/zabbix/zabbix_agentd.log
logfilesize: 0
include: /etc/zabbix/zabbix_agentd.d/
# Or multiple "Include" options
includes:
- /etc/zabbix/zabbix_agentd.d/
- /some/custom/location/
userparameters:
- net.ping[*],/usr/bin/fping -q -c3 $1 2>&1 | sed 's,.*/\([0-9.]*\)/.*,\1,'
- custom.vfs.dev.discovery,/usr/local/bin/dev-discovery.sh
extra_conf: |
# Here we can set extra agent configuration lines
# Alternative server and serveractive as strings (the rest is used the same as above)
zabbix-agent:
server: localhost
serveractive: localhost
## Zabbix Agent for Windows ##
zabbix-agent:
server:
- zabbix.example.com
serveractive:
- localhost
listenip: 0.0.0.0
listenport: 10050
hostmetadata: c9767034-22c6-4d3d-a886-5fcaf1386b77
# For zabbix-agent below version 3 if you want to use syslog instead of file specify
# logfile: syslog
logfile: 'C:\program files\zabbix agent\zabbix_agentd.log'
logfilesize: 5
include: 'C:\program files\zabbix agent\zabbix_agentd.d\'
# Or multiple "Include" options
includes:
- 'C:\program files\zabbix agent\zabbix_agentd.d\'
- 'C:\some\custom\location\'
# Pidfiles will break the windows agent so please don't add them.
## lookup config for windows agent ##
zabbix:
lookup:
agent:
version: '3.0.28.2400'
## Because of the way winrepo-ng works you have to have the FULL agent version
## Check the zabbix-agent in winrepo-ng for current versions,
## or create your own pkg file
zabbix-server:
listenip: 0.0.0.0
listenport: 10051
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpassword: zabbixpass
extra_conf: |
# Here we can set extra server configuration lines
zabbix-mysql:
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpassword: zabbixpass
dbuser_host: '%'
# Optionally specify this for a non-local dbhost
# dbroot_user: 'root'
# dbroot_pass: 'rootpass'
zabbix-frontend:
dbtype: MYSQL
dbhost: localhost
dbname: zabbix
dbuser: zabbixuser
dbpassword: zabbixpass
zbxserver: localhost
zbxserverport: 10051
zbxservername: 'Zabbix installed with saltstack'
zabbix-proxy:
proxymode: 0
server: localhost
serverport: 10051
hostname: localhost
hostnameitem: system.hostname
listenport: 10051
sourceip: 127.0.0.1
logfile: syslog
logfilesize: 0
debugelevel: 3
pidfile: /tmp/zabbix_proxy.pid
dbhost: localhost
dbname: /var/lib/zabbix/zabbix_proxy.db
dbuser: zabbix
include: /etc/zabbix/zabbix_proxy.d/
# Example with PostgreSQL on Debian 9
# Installation with PostgreSQL will likely not work with Zabbix version below 3.0
zabbix:
lookup:
version_repo: 3.4
agent:
version: '1:3.4.*'
frontend:
version: '1:3.4.*'
dbtype: POSTGRESQL
# you need to override default package list
server:
version: '1:3.4.*'
pkgs:
- zabbix-server-pgsql
- zabbix-get
# unset dbsocket, it's not used with PostgreSQL
dbsocket: ""
zabbix-pgsql:
# By default SQL dump provided by Zabbix package will be used, but you can
# put your own dump in corresponding directory (consult with TOFS_pattern.md)
# and specify path in sql_file param
sql_file: /usr/share/doc/zabbix-server-pgsql/custom.sql.gz