Skip to content

Commit 9543c14

Browse files
committed
change CI to use terraform role
1 parent 54e1c33 commit 9543c14

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/stackhpc.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
ANSIBLE_FORCE_COLOR: True
1616
OS_CLOUD: openstack
17-
TF_VAR_cluster_name: ci${{ github.run_id }}
17+
CI_CLUSTER_NAME: ci${{ github.run_id }}
1818
CI_CLOUD: ${{ vars.CI_CLOUD }}
1919
steps:
2020
- uses: actions/checkout@v2
@@ -43,10 +43,6 @@ jobs:
4343
with:
4444
terraform: v1.5.5
4545

46-
- name: Initialise terraform
47-
run: terraform init
48-
working-directory: ${{ github.workspace }}/environments/.stackhpc/terraform
49-
5046
- name: Write clouds.yaml
5147
run: |
5248
mkdir -p ~/.config/openstack/
@@ -67,8 +63,7 @@ jobs:
6763
run: |
6864
. venv/bin/activate
6965
. environments/.stackhpc/activate
70-
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
71-
terraform apply -auto-approve -var-file="${{ vars.CI_CLOUD }}.tfvars"
66+
ansible-playbook -v ansible/infra.yml -e terraform_autoapprove=true
7267
7368
- name: Delete infrastructure if provisioning failed
7469
run: |

0 commit comments

Comments
 (0)