File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
jobs :
6
6
openstack :
7
- name : openstack-build-arcus
7
+ name : openstack-imagebuild
8
8
concurrency : ${{ github.ref }} # to branch/PR
9
9
runs-on : ubuntu-20.04
10
10
env :
11
11
ANSIBLE_FORCE_COLOR : True
12
12
OS_CLOUD : openstack
13
+ CI_CLOUD : ${{ vars.CI_CLOUD }}
13
14
steps :
14
15
- uses : actions/checkout@v2
15
16
16
17
- name : Setup ssh
17
18
run : |
18
19
set -x
19
20
mkdir ~/.ssh
20
- echo "${arcus_SSH_KEY }" > ~/.ssh/id_rsa
21
+ echo "${{ secrets[format('{0}_SSH_KEY', vars.CI_CLOUD)] } }" > ~/.ssh/id_rsa
21
22
chmod 0600 ~/.ssh/id_rsa
22
- env :
23
- arcus_SSH_KEY : ${{ secrets.ARCUS_SSH_KEY }}
23
+ shell : bash
24
24
25
25
- name : Add bastion's ssh key to known_hosts
26
- run : cat environments/.stackhpc/bastion_fingerprint >> ~/.ssh/known_hosts
26
+ run : cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
27
27
shell : bash
28
28
29
29
- name : Install ansible etc
32
32
- name : Write clouds.yaml
33
33
run : |
34
34
mkdir -p ~/.config/openstack/
35
- echo "${arcus_CLOUDS_YAML }" > ~/.config/openstack/clouds.yaml
35
+ echo "${{ secrets[format('{0}_CLOUDS_YAML', vars.CI_CLOUD)] } }" > ~/.config/openstack/clouds.yaml
36
36
shell : bash
37
- env :
38
- arcus_CLOUDS_YAML : ${{ secrets.ARCUS_CLOUDS_YAML }}
39
-
37
+
40
38
- name : Setup environment
41
39
run : |
42
40
. venv/bin/activate
49
47
. environments/.stackhpc/activate
50
48
cd packer/
51
49
packer init .
52
- PACKER_LOG=1 packer build -only openstack.openhpc -on-error=ask -var-file=$PKR_VAR_environment_root/builder .pkrvars.hcl openstack.pkr.hcl
50
+ PACKER_LOG=1 packer build -only openstack.openhpc -on-error=ask -var-file=$PKR_VAR_environment_root/${{ vars.CI_CLOUD }} .pkrvars.hcl openstack.pkr.hcl
53
51
54
52
- name : Get created image name from manifest
55
53
id : manifest
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ flavor = " general.v1.tiny"
2
+ networks = [" 26023e3d-bc8e-459c-8def-dbd47ab01756" ] # stackhpc-ipv4-geneve
3
+ source_image_name = " openhpc-230503-0944-bf8c3f63" # https://github.com/stackhpc/ansible-slurm-appliance/pull/252
4
+ fatimage_source_image_name = " Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
5
+ ssh_keypair_name = " slurm-app-ci"
6
+ ssh_private_key_file = " ~/.ssh/id_rsa"
7
+ security_groups = [" default" , " SSH" ]
8
+ ssh_bastion_host = " 185.45.78.150"
9
+ ssh_bastion_username = " steveb"
You can’t perform that action at this time.
0 commit comments