-
Notifications
You must be signed in to change notification settings - Fork 118
Add suse support #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suse support #140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # vim: ft=yaml | ||
| --- | ||
| zabbix: | ||
| version_repo: 2.2 | ||
| version_repo: 5.0 | ||
| user: zabbix | ||
| group: zabbix | ||
| home: /var/lib/zabbix | ||
|
|
@@ -24,7 +24,7 @@ zabbix: | |
| - /etc/zabbix/zabbix_agentd.d/ | ||
| server: | ||
| pkgs: | ||
| - zabbix-server-mysql | ||
| - zabbix-server-pgsql | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can't change global defaults and call it 'non breaking change'. Also I can't understand why you ever touch global defaults if you have Suse section in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I disagree with changing this portion of the defaults file altogether. There is a whole portion of this formula to deal with postgres instead of mysql. Mysql is still valid, and there is no reason to change this in the defaults. |
||
| - zabbix-get | ||
| service: zabbix-server | ||
| config: /etc/zabbix/zabbix_server.conf | ||
|
|
@@ -36,18 +36,17 @@ zabbix: | |
| dbname: zabbix | ||
| dbuser: zabbix | ||
| dbpassword: zabbix | ||
| dbsocket: /var/run/mysqld/mysqld.sock | ||
| dbsocket: "" | ||
| timeout: '4' | ||
| alertscriptspath: /usr/lib/zabbix/alertscripts | ||
| externalscripts: /usr/lib/zabbix/externalscripts | ||
| fpinglocation: /usr/bin/fping | ||
| fping6location: /usr/bin/fping6 | ||
| logslowqueries: '3000' | ||
| frontend: | ||
| pkgs: | ||
| - zabbix-web-mysql | ||
| config: /etc/zabbix/web/zabbix.conf.php | ||
| dbtype: MYSQL | ||
| dbtype: POSTGRESQL | ||
| dbhost: localhost | ||
| dbname: zabbix | ||
| dbuser: zabbix | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,47 @@ RedHat: | |
| pkgs: | ||
| - MySQL-python | ||
|
|
||
| Suse: | ||
| version_repo: 5.0 | ||
| user: zabbix | ||
| group: zabbix | ||
| shell: /sbin/nologin | ||
| agent: | ||
| pkgs: | ||
| - zabbix-agent | ||
| service: zabbix-agent | ||
| config: /etc/zabbix/zabbix_agentd.conf | ||
| pidfile: /var/run/zabbix/zabbix_agentd.pid | ||
| logfile: /var/log/zabbix/zabbix_agentd.log | ||
| includes: | ||
| - /etc/zabbix/zabbix_agentd.d/*.conf | ||
| server: | ||
| pkgs: | ||
| - zabbix-server-pgsql | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You set package to PostgreSQL version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unless mysql is not available in Suse, which I imagine it is, these changes need to be made in the zabbix.pgsql portion of the formula, or can be modified in your own pillar files. |
||
| service: zabbix-server | ||
| config: /etc/zabbix/zabbix_server.conf | ||
| dbsocket: /var/lib/mysql/mysql.sock | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But you don't set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unless mysql is not available in Suse, which I imagine it is, these changes need to be made in the zabbix.pgsql portion of the formula, or can be modified in your own pillar files. |
||
| pidfile: /var/run/zabbix/zabbix_server.pid | ||
| logfile: /var/log/zabbix/zabbix_server.log | ||
| snmptrapperfile: /var/log/snmptrap/snmptrap.log | ||
| fpinglocation: /usr/sbin/fping | ||
| fping6location: /usr/sbin/fping | ||
| frontend: | ||
| pkgs: | ||
| - zabbix-web-pgsql | ||
| config: /etc/zabbix/web/zabbix.conf.php | ||
| proxy: | ||
| pkgs: | ||
| - zabbix-proxy-sqlite3 | ||
| service: zabbix-proxy | ||
| config: /etc/zabbix/zabbix_proxy.conf | ||
| dbname: /var/lib/zabbix/zabbix_proxy.db | ||
| pidfile: /var/run/zabbix/zabbix_proxy.pid | ||
| logfile: /var/log/zabbix/zabbix_proxy.log | ||
| mysql: | ||
| pkgs: | ||
| - MySQL-python | ||
|
|
||
| FreeBSD: | ||
| version_repo: 2.2 | ||
| user: zabbix | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,16 @@ | |
| - gpgcheck: 1 | ||
| - gpgkey: https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-79EA5ED4 | ||
| {%- elif salt['grains.get']('os_family') == 'Suse' %} | ||
| zabbix_repo: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| pkgrepo.managed: | ||
| - name: zabbix | ||
| - humanname: "Zabbix Official Repository" | ||
| - baseurl: https://repo.zabbix.com/zabbix/{{ zabbix.version_repo }}/sles/{{ grains['osmajorrelease'] }}/x86_64/ | ||
| - gpgcheck: 1 | ||
| - gpgkey: https://repo.zabbix.com/zabbix/{{ zabbix.version_repo }}/sles/{{ grains['osmajorrelease'] }}/x86_64/repodata/repomd.xml.key | ||
| - gpgautoimport: True | ||
| {%- else %} | ||
| {{ id_prefix }}_repo: {} | ||
| {%- endif %} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion about setting v 5 as default is going on here #123
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with this as part of the merge. While I agree it needs to happen, this should be in a different pull request.