Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
9812145d
Commit
9812145d
authored
Jun 07, 2018
by
Florian Pritz
Browse files
Improve group vars vault usage for zabbix_server
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
9e1623af
Changes
5
Hide whitespace changes
Inline
Side-by-side
group_vars/all/vault_zabbix_server.yml
View file @
9812145d
$ANSIBLE_VAULT;1.1;AES256
64323962376133366330393062343963646263323339663438323733613864323437343135346261
3332613736373461356164323134623032353334383935620a356130383264316166613236356331
39646334393066613937633137626639643764303835653231623861616332343035306465326335
3330653462653865320a316136613333386238396431633363636366366565386539323930323337
33356332313939313863386362373632386234333739633336343130373138613963616631343362
6563636533303935333465393031366366646262383265613162
35333031616161376230613133633134656434363330636436343937366133306535313232616537
6133633561333765353737613332346336363037323666610a346131643633643962643638326136
30613732306235653665616134626561306265376231373464343863313430653661373465303830
3536326334653036380a383239633534326332623639343866373635353433626635626331383763
66323862383662373164663935393130666234633964343735363663613332396335316435646662
66636430336239613435323866386364396430663830383231323961303931343730343564343166
336432643566386431353632653533313233
roles/zabbix-server/tasks/main.yml
View file @
9812145d
...
...
@@ -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
...
...
roles/zabbix-server/templates/pgpass.j2
View file @
9812145d
# 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}}
roles/zabbix-server/templates/zabbix.conf.php.j2
View file @
9812145d
...
...
@@ -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'
]
=
''
;
...
...
roles/zabbix-server/templates/zabbix_server.conf
View file @
9812145d
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment