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
9e655f80
Commit
9e655f80
authored
Jun 07, 2018
by
Florian Pritz
Browse files
Improve group vars vault usage for mariadb
parent
12b386da
Changes
8
Hide whitespace changes
Inline
Side-by-side
group_vars/all/vault_mariadb.yml
View file @
9e655f80
$ANSIBLE_VAULT;1.1;AES256
3630613939613161376138326236383434316163386
4333
734633466366339663864663966326265
6
466643864646139616137646330373865613635316664620a653535
3639
6263363162376634366
6
66653
73965
33303
239346134653564656561386364336661613339393
23
3
643
062343938343132
61
613
0306539643631610a643831656536303263
306
5
366
13330386435353765326438326639313030
31616632643137373633386365346339623332313038646234646432633062623439316465346235
6
3613461
39
6
33
5646431393266323835333562393762646637633632373537346432333435396437
3
3393862306530343
43
3
63
6265316535393661373931
36656
1373561336533386136616363303935
63316466393032396163376166623337643561346331356564383565303465646433616462346533
62353265346235616537613537633236643831643630623762396466346461646
56
4
616336393838626661303732353030653731666136643162323
43
1
33
363536633231303937386333
6
161623639616536663962306163363038316530396631390a633
36
2
39
303938366562613166363
6
353
66
2
653
4616464626262626
33
8
303
63537653264613664373138616
23
1
643
537613436633236
61
613
4653333623833310a6239303065
306366
35666136343439616632363431313766316134623064
62646639343134623538623665616538366335616633353536363761663835623863626264663866
6
23330
3933
6632316638393233376235643033623439363165336233623364376664613462373132
3
0663162366634656
4363
0613838326161386431633
36
3
656
4383730366165626331326233306130
35613137633165323036666235326164313935396266323466363436376536646531646562643235
39356563663234663635333563623862646636366330346434326138386637333
56
3
host_vars/luna.archlinux.org/misc
View file @
9e655f80
...
...
@@ -7,5 +7,5 @@ filesystem: "ext4"
mysql_backup_dir: "/root/backup-mysql"
mysql_backup_defaults: "/root/.backup-my.cnf"
mariadb_users:
vault_
mariadb_users:
root: "{{encrypted_mariadb_users_root_password}}"
roles/archwiki/tasks/main.yml
View file @
9e655f80
...
...
@@ -48,12 +48,12 @@
no_log
:
true
-
name
:
create archwiki db
mysql_db
:
name="{{ archwiki_db }}" login_host="{{ archwiki_db_host }}" login_password="{{ mariadb_users.root }}"
mysql_db
:
name="{{ archwiki_db }}" login_host="{{ archwiki_db_host }}" login_password="{{
vault_
mariadb_users.root }}"
register
:
db_created
-
name
:
create archwiki db user
mysql_user
:
name={{ archwiki_db_user }} password={{ archwiki_db_password }}
login_host="{{ archwiki_db_host }}" login_password="{{ mariadb_users.root }}"
login_host="{{ archwiki_db_host }}" login_password="{{
vault_
mariadb_users.root }}"
priv="{{ archwiki_db }}.*:ALL"
no_log
:
true
...
...
roles/borg-client/templates/backup-my.cnf.j2
View file @
9e655f80
[client]
user = root
password = "{{mariadb_users.root}}"
password = "{{
vault_
mariadb_users.root}}"
roles/flyspray/tasks/main.yml
View file @
9e655f80
...
...
@@ -41,12 +41,12 @@
no_log
:
true
-
name
:
create flyspray db
mysql_db
:
name="{{ flyspray_db }}" login_host="{{ flyspray_db_host }}" login_password="{{ mariadb_users.root }}"
mysql_db
:
name="{{ flyspray_db }}" login_host="{{ flyspray_db_host }}" login_password="{{
vault_
mariadb_users.root }}"
register
:
db_created
-
name
:
create flyspray db user
mysql_user
:
name={{ flyspray_db_user }} password={{ flyspray_db_password }}
login_host="{{ flyspray_db_host }}" login_password="{{ mariadb_users.root }}"
login_host="{{ flyspray_db_host }}" login_password="{{
vault_
mariadb_users.root }}"
priv="{{ flyspray_db }}.*:ALL"
no_log
:
true
...
...
roles/mariadb/tasks/main.yml
View file @
9e655f80
...
...
@@ -31,7 +31,7 @@
mysql_db
:
db=test state=absent
-
name
:
set root password
mysql_user
:
user=root host={{ item }} password={{ mariadb_users.root }}
mysql_user
:
user=root host={{ item }} password={{
vault_
mariadb_users.root }}
with_items
:
-
'
127.0.0.1'
-
'
::1'
...
...
@@ -43,7 +43,7 @@
no_log
:
true
-
name
:
configure zabbix-agent user
mysql_user
:
user={{zabbix_agent_mysql_user}} host=localhost password={{mariadb_users.zabbix_agent}}
mysql_user
:
user={{zabbix_agent_mysql_user}} host=localhost password={{
vault_
mariadb_users.zabbix_agent}}
-
name
:
install zabbix mysql config
template
:
src=zabbix_agentd.my.cnf.j2 dest=/etc/zabbix/zabbix_agentd.my.cnf owner=zabbix-agent group=zabbix-agent mode=0600
...
...
roles/mariadb/templates/client.cnf.j2
View file @
9e655f80
[client]
user=root
password={{ mariadb_users.root }}
password={{
vault_
mariadb_users.root }}
roles/mariadb/templates/zabbix_agentd.my.cnf.j2
View file @
9e655f80
[client]
user={{zabbix_agent_mysql_user}}
password={{mariadb_users.zabbix_agent}}
password={{
vault_
mariadb_users.zabbix_agent}}
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