Browse Source

Merge "Fix gitea playbooks"

changes/81/636681/1
Zuul 1 year ago
parent
commit
be5b02d08f
2 changed files with 11 additions and 10 deletions
  1. +8
    -7
      kubernetes/rook/rook-playbook.yaml
  2. +3
    -3
      run_all.sh

+ 8
- 7
kubernetes/rook/rook-playbook.yaml View File

@@ -1,14 +1,15 @@
- hosts: localhost
tasks:

# Using kubectl rather than k8s module because the
# k8s module only allows single document files and
# the majority of these files are pretty straight
# copies from upstream rook, so reorganizing them
# into single document files is lame.
- name: Set up cinder storage class
command: |
kubectl --context gitea apply -f rook-operator.yaml
kubectl --context gitea apply -f rook-cluster.yaml
kubectl --context gitea apply -f rook-toolbox.yaml
kubectl --context gitea apply -f rook-filesystem.yaml
- name: Set up Rook operator
command: kubectl --context gitea apply -f rook-operator.yaml
- name: Set up Rook cluster
command: kubectl --context gitea apply -f rook-cluster.yaml
- name: Set up Rook toolbox
command: kubectl --context gitea apply -f rook-toolbox.yaml
- name: Set up Rook filesystem
command: kubectl --context gitea apply -f rook-filesystem.yaml

+ 3
- 3
run_all.sh View File

@@ -94,15 +94,15 @@ send_timer base

# These playbooks run on the gitea k8s cluster
start_timer
timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/rook/rook-playbook.yaml
timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/rook/rook-playbook.yaml
send_timer gitea_rook

start_timer
timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/percona-xtradb-cluster/pxc-playbook.yaml
timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/percona-xtradb-cluster/pxc-playbook.yaml
send_timer gitea_pxc

start_timer
timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/gitea/gitea-playbook.yaml
timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/gitea/gitea-playbook.yaml
send_timer gitea_gitea

# Update the puppet version

Loading…
Cancel
Save