Skip to content

Commit

Permalink
update CI workflow for ansible-driven TF
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Dec 1, 2022
1 parent be7b812 commit 79b9de9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/stackhpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
ANSIBLE_FORCE_COLOR: True
OS_CLOUD: openstack
TF_VAR_cluster_name: ci${{ github.run_id }}
CI_CLUSTER_NAME: ci${{ github.run_id }}
steps:
- uses: actions/checkout@v2

Expand All @@ -42,9 +42,9 @@ jobs:
- name: Install terraform
uses: hashicorp/setup-terraform@v1

- name: Initialise terraform
run: terraform init
working-directory: ${{ github.workspace }}/environments/${{ matrix.cloud }}/terraform
# - name: Initialise terraform
# run: terraform init
# working-directory: ${{ github.workspace }}/environments/${{ matrix.cloud }}/terraform

- name: Write clouds.yaml
run: |
Expand All @@ -63,13 +63,12 @@ jobs:
env:
TESTUSER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}

- name: Provision servers
- name: Provision cluster
id: provision_servers
run: |
. venv/bin/activate
. environments/${{ matrix.cloud }}/activate
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
terraform apply -auto-approve
ansible-playbook ansible/adhoc/provision.yml
- name: Get server provisioning failure messages
id: provision_failure
Expand Down

0 comments on commit 79b9de9

Please sign in to comment.