Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include:
- - debconf-utils
- - php
- {% if pillar['zabbix-sql'] == 'postgres' %}
- - postgres
- {% else %}
- - mysql
- {% endif %}
- #zabbix-debconf:
- # debconf.set_file:
- # - source: salt://zabbix/zabbix.sel
- zabbix-server:
- pkg:
- - installed
- - debconf: salt://zabbix/zabbix.sel
- {% if pillar['zabbix-sql'] == 'postgres' %}
- - name: zabbix-server-pgsql
- - require:
- - pkg: postgres
- {% else %}
- - name: zabbix-server-mysql
- - require:
- - pkg: mysql
- - pkg: debconf-utils
- {% endif %}
- zabbix-frontend-php:
- pkg:
- - installed
- - debconf: salt://zabbix/zabbix.sel
- - require:
- - pkg: php
- - pkg: zabbix-server
- - pkg: debconf-utils
- #TODO: for ubuntu > 12.04, zabbix2.0 require change php.ini
- ================== zabbix.sel
- zabbix-server-pgsql zabbix-server-pgsql/pgsql/app-pass password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/app-password-confirm password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/password-confirm password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/pgsql/admin-pass password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/dbconfig-install boolean true
- # TODO set passwd for mysql
- # PostgreSQL application password for zabbix-frontend-php:
- zabbix-frontend-php zabbix-frontend-php/pgsql/admin-pass password rootpasswd!@#$
- zabbix-frontend-php zabbix-frontend-php/pgsql/app-pass password rootpasswd!@#$
- zabbix-frontend-php zabbix-frontend-php/mysql/admin-pass password rootpasswd!@#$
- zabbix-frontend-php zabbix-frontend-php/mysql/app-pass password rootpasswd!@#$
- zabbix-frontend-php zabbix-frontend-php/password-confirm password rootpasswd!@#$
- zabbix-frontend-php zabbix-frontend-php/database-type select pgsql
- # NOTE: the password that server and frontend use must be the same, because frontend will change server password to its passwd
- ====== output
- root@ubun3:/etc/zabbix# debconf-get-selections | grep zabb | grep passw | grep -v mysql | grep server
- zabbix-server-pgsql zabbix-server-pgsql/app-password-confirm password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/password-confirm password rootpasswd!@#$
- # PostgreSQL application password for zabbix-server-pgsql:
- zabbix-server-pgsql zabbix-server-pgsql/pgsql/app-pass password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/pgsql/admin-pass password rootpasswd!@#$
- zabbix-server-pgsql zabbix-server-pgsql/passwords-do-not-match error
- zabbix-server-pgsql zabbix-server-pgsql/pgsql/no-empty-passwords error
- root@ubun3:/etc/zabbix#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement