Browse Source

Merge "Fix gitea playbooks"

changes/81/636681/1
Zuul 7 months 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 @@
1 1
 - hosts: localhost
2 2
   tasks:
3
-
4 3
     # Using kubectl rather than k8s module because the
5 4
     # k8s module only allows single document files and
6 5
     # the majority of these files are pretty straight
7 6
     # copies from upstream rook, so reorganizing them
8 7
     # into single document files is lame.
9
-    - name: Set up cinder storage class
10
-      command: |
11
-        kubectl --context gitea apply -f rook-operator.yaml
12
-        kubectl --context gitea apply -f rook-cluster.yaml
13
-        kubectl --context gitea apply -f rook-toolbox.yaml
14
-        kubectl --context gitea apply -f rook-filesystem.yaml
8
+    - name: Set up Rook operator
9
+      command: kubectl --context gitea apply -f rook-operator.yaml
10
+    - name: Set up Rook cluster
11
+      command: kubectl --context gitea apply -f rook-cluster.yaml
12
+    - name: Set up Rook toolbox
13
+      command: kubectl --context gitea apply -f rook-toolbox.yaml
14
+    - name: Set up Rook filesystem
15
+      command: kubectl --context gitea apply -f rook-filesystem.yaml

+ 3
- 3
run_all.sh View File

@@ -94,15 +94,15 @@ send_timer base
94 94
 
95 95
 # These playbooks run on the gitea k8s cluster
96 96
 start_timer
97
-timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/rook/rook-playbook.yaml
97
+timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/rook/rook-playbook.yaml
98 98
 send_timer gitea_rook
99 99
 
100 100
 start_timer
101
-timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/percona-xtradb-cluster/pxc-playbook.yaml
101
+timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/percona-xtradb-cluster/pxc-playbook.yaml
102 102
 send_timer gitea_pxc
103 103
 
104 104
 start_timer
105
-timeout -k 2m 120m ansible-playbook -f 50 -e /etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/gitea/gitea-playbook.yaml
105
+timeout -k 2m 120m ansible-playbook -f 50 -e @/etc/ansible/hosts/gitea-cluster.yaml ${SYSTEM_CONFIG}/kubernetes/gitea/gitea-playbook.yaml
106 106
 send_timer gitea_gitea
107 107
 
108 108
 # Update the puppet version

Loading…
Cancel
Save