Commit 9812145d authored by Florian Pritz's avatar Florian Pritz
Browse files

Improve group vars vault usage for zabbix_server



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 9e1623af
$ANSIBLE_VAULT;1.1;AES256
64323962376133366330393062343963646263323339663438323733613864323437343135346261
3332613736373461356164323134623032353334383935620a356130383264316166613236356331
39646334393066613937633137626639643764303835653231623861616332343035306465326335
3330653462653865320a316136613333386238396431633363636366366565386539323930323337
33356332313939313863386362373632386234333739633336343130373138613963616631343362
6563636533303935333465393031366366646262383265613162
35333031616161376230613133633134656434363330636436343937366133306535313232616537
6133633561333765353737613332346336363037323666610a346131643633643962643638326136
30613732306235653665616134626561306265376231373464343863313430653661373465303830
3536326334653036380a383239633534326332623639343866373635353433626635626331383763
66323862383662373164663935393130666234633964343735363663613332396335316435646662
66636430336239613435323866386364396430663830383231323961303931343730343564343166
336432643566386431353632653533313233
......@@ -20,7 +20,7 @@
file: path=/var/log/nginx/{{ zabbix_domain }} state=directory owner=root group=root mode=0755
- name: create zabbix db user
postgresql_user: name={{ zabbix_db_user }} password={{ zabbix_db_password }} encrypted=true
postgresql_user: name={{ zabbix_db_user }} password={{ vault_zabbix_db_password }} encrypted=true
become: yes
become_user: postgres
become_method: su
......
# hostname:port:database:username:password
localhost:*:{{zabbix_db_name}}:{{zabbix_db_user}}:{{zabbix_db_password}}
localhost:*:{{zabbix_db_name}}:{{zabbix_db_user}}:{{vault_zabbix_db_password}}
......@@ -7,7 +7,7 @@ $DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = '{{zabbix_db_name}}';
$DB['USER'] = '{{zabbix_db_user}}';
$DB['PASSWORD'] = '{{zabbix_db_password}}';
$DB['PASSWORD'] = '{{vault_zabbix_db_password}}';
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = '';
......
LogType=system
DBName={{zabbix_db_name}}
DBUser={{zabbix_db_user}}
DBPassword={{zabbix_db_password}}
DBPassword={{vault_zabbix_db_password}}
Timeout=4
LogSlowQueries=3000
StartPollers=30
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment