Write out db config for root user

We use this in some utlity scripts, but we currently don't
write it out anywhere. It was an old puppet artifact.

Change-Id: Ib6fdfc4f4a9c5d1befdb6d256989450996dd2a3d
This commit is contained in:
Monty Taylor 2020-04-11 11:55:23 -05:00
parent 6f0d320aa0
commit 842ba4d592
2 changed files with 12 additions and 0 deletions

View File

@ -290,6 +290,13 @@
- name: Start gerrit - name: Start gerrit
include_tasks: start.yaml include_tasks: start.yaml
- name: Set up root mysql conf file
when: gerrit_database_type == 'MYSQL'
template:
src: root.my.cnf.j2
dest: /root/.gerrit_db.cnf
mode: 0400
- name: Set up cron job to optmize git repos - name: Set up cron job to optmize git repos
cron: cron:
name: optmize-git-repos name: optmize-git-repos

View File

@ -0,0 +1,5 @@
[client]
host={{ gerrit_mysql_host }}
user=gerrit2
password={{ gerrit_mysql_password }}
ssl=false