Browse Source

Merge "Update host_vars and sync-to-review-test playbook"

changes/35/743835/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
b4c95d08b9
5 changed files with 11 additions and 6 deletions
  1. +1
    -0
      inventory/service/groups.yaml
  2. +0
    -0
      inventory/service/host_vars/review-test.opendev.org.yaml
  3. +2
    -1
      playbooks/roles/gerrit/tasks/main.yaml
  4. +5
    -0
      playbooks/roles/letsencrypt-create-certs/handlers/main.yaml
  5. +3
    -5
      playbooks/sync-to-review-test.yaml

+ 1
- 0
inventory/service/groups.yaml View File

@@ -94,6 +94,7 @@ groups:
- nb[0-9]*.opendev.org
- review-dev[0-9]*.open*.org
- review[0-9]*.open*.org
- review-test.opendev.org
- static[0-9]*.opendev.org
- zuul[0-9]*.open*.org
logstash:


inventory/service/host_vars/review-test.openstack.org.yaml → inventory/service/host_vars/review-test.opendev.org.yaml View File


+ 2
- 1
playbooks/roles/gerrit/tasks/main.yaml View File

@@ -245,11 +245,12 @@
name: '[{{ gerrit_vhost_name }}]:29418'
when: gerrit_self_hostkey is defined

- name: Install apache2
- name: Install apache2 and mysql client tools
apt:
name:
- apache2
- apache2-utils
- mysql-client-core-5.7
state: present

- name: Apache modules


+ 5
- 0
playbooks/roles/letsencrypt-create-certs/handlers/main.yaml View File

@@ -144,6 +144,11 @@
- name: letsencrypt updated review01-opendev-org-main
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml

# review-test

- name: letsencrypt updated review-test-opendev-org-main
include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml

# Mirrors

- name: letsencrypt updated mirror01-dfw-rax-main


+ 3
- 5
playbooks/sync-to-review-test.yaml View File

@@ -11,22 +11,20 @@

- name: Copy the mysqldump
shell:
cmd: scp mysql_backups/gerrit.sql.gz.1 review-test.opendev.org:/home/gerrit2/gerrit.sql.gz
cmd: scp mysql_backups/gerrit.sql.gz.1 gerrit2@review-test.opendev.org:/home/gerrit2/gerrit.sql.gz
chdir: /home/gerrit2
become: gerrit2

- name: Sync the git repos
shell:
cmd: rsync -avz --delete index cache git review-test.opendev.org:/home/gerrit2/review_site
cmd: rsync -avz --delete index cache git gerrit2@review-test.opendev.org:/home/gerrit2/review_site
chdir: /home/gerrit2/review_site
become: gerrit2

- hosts: review-test.opendev.org
tasks:

- name: Apply mysql dump
shell:
cmd: zcat /home/gerrit2/gerrit.sql.gz | mysql
cmd: zcat /home/gerrit2/gerrit.sql.gz | mysql --defaults-file=/root/.gerrit_db.cnf

- name: Start gerrit
shell:


Loading…
Cancel
Save