Merge "Write out db config for root user"

This commit is contained in:
Zuul 2020-04-15 01:11:07 +00:00 committed by Gerrit Code Review
commit ff821692ed
2 changed files with 12 additions and 0 deletions

View File

@ -297,6 +297,13 @@
- name: Start gerrit
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
cron:
name: optmize-git-repos

View File

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