zabbix: formatting issue in zabbix web config template
rework db task for creating zabbix user Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
a8cc7b4c9b
commit
2ce8906f5f
2 changed files with 13 additions and 17 deletions
|
@ -16,17 +16,13 @@
|
||||||
tags:
|
tags:
|
||||||
- zabbix-services
|
- zabbix-services
|
||||||
|
|
||||||
- name: Configure the zabbix db user
|
|
||||||
ansible.builtin.shell: |
|
|
||||||
sudo -u postgres createuser --pwprompt {{ zabbix_db_user }}
|
|
||||||
|
|
||||||
expect "Enter password for new role: "
|
- name: Connect to acme database, create django user, and grant access to database and products table
|
||||||
send "{{ zabbix_db_pass }}\n"
|
postgresql_user:
|
||||||
expect "Enter it again: "
|
name: "{{ zabbix_db_user }}"
|
||||||
send "{{ zabbix_db_pass }}\n"
|
password: "{{ zabbix_db_pass }}"
|
||||||
|
become: true
|
||||||
exit 0
|
become_user: postgres
|
||||||
# no_log: True
|
|
||||||
tags:
|
tags:
|
||||||
- db-configure
|
- db-configure
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?php [35/1910]
|
<?php
|
||||||
// Zabbix GUI configuration file.
|
// Zabbix GUI configuration file.
|
||||||
|
|
||||||
$DB['TYPE'] = '{{ zabbix_db_type }}';
|
$DB['TYPE'] = '{{ zabbix_db_type }}';
|
||||||
$DB['SERVER'] = '{{ zabbix_db_host }}';
|
$DB['SERVER'] = '{{ zabbix_db_host }}';
|
||||||
$DB['PORT'] = '{{ zabbix_db_port }}';
|
$DB['PORT'] = '{{ zabbix_db_port }}';
|
||||||
$DB['DATABASE'] = '{{ zabbix_db_name }}';
|
$DB['DATABASE'] = '{{ zabbix_db_name }}';
|
||||||
$DB['USER'] = '{{ zabbix_db_user }}';
|
$DB['USER'] = '{{ zabbix_db_user }}';
|
||||||
$DB['PASSWORD'] = '{{ zabbix_db_pass }}';
|
$DB['PASSWORD'] = '{{ zabbix_db_pass }}';
|
||||||
|
|
||||||
// Schema name. Used for PostgreSQL.
|
// Schema name. Used for PostgreSQL.
|
||||||
$DB['SCHEMA'] = '';
|
$DB['SCHEMA'] = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue