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

still working on key handling

parent 746a1a35
No related branches found
No related tags found
3 merge requests!297Cicd merge back,!284Cicd,!282CICD
......@@ -14,15 +14,6 @@ stages:
- tests
- clean # only on master
setup:
stage: .pre
tags:
- ansible
script:
- echo $GC_KEY > gc_key.pem
- chmod 400 gc_key.pem
- echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
#trigger_pipeline_in_B:
# stage: integration_test_downstream
# tags:
......@@ -65,14 +56,19 @@ yamllint:
- yamllint
script:
- echo "stage yamllint"
- cd CICD
- ansible-lint -x ANSIBLE0002 master_playbook.yml
- yamllint -c ./CICD/.yamllintheat.yaml ./CICD/heat
- yamllint -c ./.yamllintheat.yaml ./heat
build_cluster_cicd:
stage: heat
allow_failure: false
tags:
- heat
before_script:
- echo $GC_KEY > gc_key.pem
- chmod 400 gc_key.pem
- echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script:
- echo "heat stage"
- source ./$NECTAR_ALLOCATION-openrc.sh
......@@ -90,6 +86,10 @@ ansible_create_cluster_stage:
stage: ansible_create_cluster_stage
tags:
- ansible
before_script:
- echo $GC_KEY > gc_key.pem
- chmod 400 gc_key.pem
- echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script:
- echo "ansible_create_cluster_stage"
- bash -x ./CICD/ansible_create_cluster_script.sh
......@@ -106,6 +106,10 @@ tests:
stage: tests
tags:
- ansible
before_script:
- echo $GC_KEY > gc_key.pem
- chmod 400 gc_key.pem
- echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script:
- echo "tests stage"
- export ANSIBLE_HOST_KEY_CHECKING=False
......@@ -139,6 +143,9 @@ manual_cluster_spawn:
- 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 ./heat/heatcicdwrapper.sh create $MANUAL_STACKNAME
......@@ -162,6 +169,9 @@ clean:
before_script:
- echo "cleanup master"
- sleep 30
- 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 ./heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
......
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