-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathautomation-vars.yml
More file actions
35 lines (30 loc) · 1.46 KB
/
automation-vars.yml
File metadata and controls
35 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
stages:
- name: "Console Recorder : Namespace"
manifest: namespace.yaml
wait_conditions:
- "oc wait namespaces sushy-emulator --for jsonpath='{.status.phase}'=Active --timeout=300s"
- name: "Console Recorder : Openstack clouds secret"
shell: >-
oc create -n sushy-emulator secret generic os-client-config
--save-config --dry-run=client
--from-file=openstack-clouds-yaml={{ cloud_config_dir }}/clouds.yaml
--from-file=certificate-pem={{ cloud_config_dir }}/cacert.pem
--type=Opaque -o yaml | oc apply -f -
- name: "Console Recorder : Clean Released PV"
shell: |
if oc get pv nova-console-recordings-pv -o jsonpath='{.status.phase}' 2>/dev/null | grep -q Released; then
oc patch pv nova-console-recordings-pv -p '{"spec":{"claimRef": null}}'
fi
- name: "Console Recorder : PersistentVolume"
manifest: console_recordings_pvs.yaml
wait_conditions:
- "oc wait pv nova-console-recordings-pv --for jsonpath='{.status.phase}'=Available --timeout=60s"
- name: "Console Recorder : PersistentVolumeClaim"
manifest: console_recordings_pvc.yaml
wait_conditions:
- "oc wait -n sushy-emulator pvc nova-console-recordings-pvc --for jsonpath='{.status.phase}'=Bound --timeout=60s"
- name: "Console Recorder : Deployment"
manifest: console_recorder_deployment.yaml
wait_conditions:
- "oc wait -n sushy-emulator pod -l app=nova-console-recorder --for condition=Ready --timeout=300s"