Skip to content
Snippets Groups Projects
Commit f3e197e9 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

resolved merge conflicts

parent 840ccd6e
No related branches found
No related tags found
1 merge request!297Cicd merge back
...@@ -100,16 +100,6 @@ ansible_create_cluster_stage: ...@@ -100,16 +100,6 @@ ansible_create_cluster_stage:
- echo do it again - echo do it again
- ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem master_playbook.yml - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem master_playbook.yml
=======
>>>>>>> origin/master
#after_script:
#- rm ./files/inventory.$STACKNAME
#only:
# changes: #https://docs.gitlab.com/ee/ci/yaml/#onlychangesexceptchanges
# - "master_playbook.yml"
# - "vars/*.{yml,yaml}"
# - schedules
# - CICD/.gitlab-ci.yml
tests: tests:
stage: tests stage: tests
...@@ -142,33 +132,6 @@ tests: ...@@ -142,33 +132,6 @@ tests:
- bash -e ./tests/run_tests.sh NFSNodes "files/inventory.$STACKNAME" "../gc_key.pem" - bash -e ./tests/run_tests.sh NFSNodes "files/inventory.$STACKNAME" "../gc_key.pem"
- bash -e ./tests/run_tests.sh SQLNodes "files/inventory.$STACKNAME" "../gc_key.pem" - bash -e ./tests/run_tests.sh SQLNodes "files/inventory.$STACKNAME" "../gc_key.pem"
# licensing https://gitlab.erc.monash.edu.au/hpc-team/license_server/tree/master/roles/avizo_license_monitor
manual_cluster_spawn:
stage: push_button_spawn_cluster
tags:
- heat
- ansible
before_script:
- echo "press button spawn cluster."
- echo "for this to work you have to provide a variable called manual stackname"
- echo I still need to handle os password
- echo $MANUAL_STACKNAME
- echo "$GC_KEY" > gc_key.pem
- chmod 400 gc_key.pem
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script:
- source ./$NECTAR_ALLOCATION-openrc.sh
- bash -x ./CICD/heat/heatcicdwrapper.sh create $MANUAL_STACKNAME
- openstack stack list
- export STACKNAME=$MANUAL_STACKNAME
- sleep 25
- bash -x CICD/ansible_create_cluster_script.sh
when: manual
only:
refs:
- "cicd"
extended: extended:
stage: extended stage: extended
tags: tags:
...@@ -185,17 +148,7 @@ extended: ...@@ -185,17 +148,7 @@ extended:
variables: variables:
- $EXTENDED != null - $EXTENDED != null
clean:
stage: clean
tags:
- heat
before_script:
- echo "cleanup stack"
- sleep 30
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script:
- source ./$NECTAR_ALLOCATION-openrc.sh
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
manual_cluster_spawn: manual_cluster_spawn:
stage: push_button_spawn_cluster stage: push_button_spawn_cluster
tags: tags:
...@@ -220,22 +173,6 @@ manual_cluster_spawn: ...@@ -220,22 +173,6 @@ manual_cluster_spawn:
only: only:
refs: refs:
- "cicd" - "cicd"
extended:
stage: extended
tags:
- heat
- ansible
before_script:
- echo "cleanup stack"
- sleep 30
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script:
- source ./$NECTAR_ALLOCATION-openrc.sh
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
only:
variables:
- $EXTENDED != null
clean: clean:
stage: clean stage: clean
...@@ -281,13 +218,4 @@ clean: ...@@ -281,13 +218,4 @@ clean:
# - openstack stack list # - openstack stack list
# after_script: # after_script:
# - sleep 20 # artifically wait a bit to make sure it is really dead # - sleep 20 # artifically wait a bit to make sure it is really dead
- echo "cleanup stack"
- sleep 30
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script:
- source ./$NECTAR_ALLOCATION-openrc.sh
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
only:
variables:
- $EXTENDED != null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment