File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : On Pull Request
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ pull_request :
7
+ types : [opened, reopened]
8
+
9
+ jobs :
10
+ run-ansible :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ env :
15
+ ANSIBLE_FORCE_COLOR : True
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Install pip dependencies
21
+ run : |
22
+ pip install -r test-requirements.txt
23
+
24
+ - name : Generate kubeconfig
25
+ env :
26
+ CLOUDS_YAML : ${{secrets.CLOUDS}}
27
+ OS_CLOUD : " smslab-stackhpc-ci"
28
+ run : |
29
+ mkdir -p ~/.config/openstack/
30
+ echo "$CLOUDS_YAML" > ~/.config/openstack/clouds.yaml
31
+ openstack server list
32
+ openstack coe cluster list
33
+ openstack coe cluster config stackhpc-infra
34
+
35
+ - name : Run playbook
36
+ run : >
37
+ ansible-playbook -i ansible/inventory ansible/run.yml
38
+
Original file line number Diff line number Diff line change
1
+ localhost ansible_connection=local
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Ensure Zuul is configured
3
+ gather_facts : false
4
+ hosts : localhost
5
+
6
+ tasks :
7
+ - name : Ensure Zuul namespace is created
8
+ kubernetes.core.k8s :
9
+ name : zuul
10
+ api_version : v1
11
+ kind : Namespace
12
+ state : present
Original file line number Diff line number Diff line change
1
+ kubernetes
2
+ python-magnumclient
3
+ python-openstackclient
You can’t perform that action at this time.
0 commit comments