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

conditionally including loginnodes to master playbook. try 3

Former-commit-id: f232c020
parent a7bd0399
No related branches found
No related tags found
No related merge requests found
...@@ -7,16 +7,15 @@ variables: ...@@ -7,16 +7,15 @@ variables:
stages: stages:
- lint - lint
#- delete_stack_manual
- extended - extended
#- heat_test #- heat_test
- heat - heat
- integration_test_downstream
- ansible_create_cluster_stage - ansible_create_cluster_stage
- push_button_spawn_cluster - push_button_spawn_cluster
# - e2e
- tests - tests
- clean # manually delete stack - integration_test_downstream
- clean
trigger_pipeline_in_Clusterbuild: trigger_pipeline_in_Clusterbuild:
stage: integration_test_downstream stage: integration_test_downstream
...@@ -33,7 +32,7 @@ trigger_pipeline_in_monarch: ...@@ -33,7 +32,7 @@ trigger_pipeline_in_monarch:
- ansible - ansible
script: script:
- echo ${CI_JOB_TOKEN} - echo ${CI_JOB_TOKEN}
- "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=cicd https://gitlab.erc.monash.edu.au/api/v4/projects/385/trigger/pipeline" # ID is from clusterbuild - "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=cicd https://gitlab.erc.monash.edu.au/api/v4/projects/385/trigger/pipeline" # ID is from monarch
yamllint: yamllint:
......
...@@ -6,14 +6,16 @@ ...@@ -6,14 +6,16 @@
- import_playbook: plays/mgmtnodes.yml - import_playbook: plays/mgmtnodes.yml
- import_playbook: plays/computenodes.yml - import_playbook: plays/computenodes.yml
- name: check if loginnodes.yml file exists - hosts: 127.0.0.1
gather_facts: false gather_facts: false
hosts: 127.0.0.1
connection: local connection: local
stat: tasks:
path: plays/loginnodes.yml - name: running stat
register: loginnodes_play stat:
path: plays/loginnodes.yml
- name: Include loginnodes.yml if present register: loginnodes_play
import_playbook: plays/loginnodes.yml - debug:
var: loginnodes_play
- import_playbook: plays/loginnodes.yml
when: loginnodes_play.stat.exists == True when: loginnodes_play.stat.exists == True
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