Skip to content

Commit

Permalink
pipeline(*): load meta information from templates repository
Browse files Browse the repository at this point in the history
Spruce load `meta-inf.yml` if presents
  • Loading branch information
o-orand committed Oct 4, 2019
1 parent 91ea8e7 commit 671798a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions concourse/pipelines/template/bosh-pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ jobs:
./credentials-resource/<%= depls %>/secrets/meta.yml
./credentials-resource/<%= depls %>/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/<%= depls %>/template
IAAS_TYPE: ((iaas-type))

Expand Down Expand Up @@ -530,6 +531,7 @@ jobs:
./credentials-resource/<%= depls %>/<%= name %>/secrets/meta.yml
./credentials-resource/<%= depls %>/<%= name %>/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/<%= depls %>/<%= name %>/template
IAAS_TYPE: ((iaas-type))
- task: execute-<%= name %>-spiff-pre-bosh-deploy
Expand Down Expand Up @@ -947,6 +949,7 @@ jobs:
./credentials-resource/shared/secrets.yml
./credentials-resource/<%= terraform_config_path %>/secrets/meta.yml
./credentials-resource/<%= terraform_config_path %>/secrets/secrets.yml
./additional-resource/meta-inf.yml
YML_TEMPLATE_DIR: additional-resource/<%= terraform_config_path %>/template
CUSTOM_SCRIPT_DIR: additional-resource/<%= terraform_config_path %>/template
SUFFIX: -tpl.tfvars.yml
Expand Down Expand Up @@ -994,6 +997,7 @@ jobs:
./credentials-resource/shared/secrets.yml
./credentials-resource/<%= terraform_config_path %>/secrets/meta.yml
./credentials-resource/<%= terraform_config_path %>/secrets/secrets.yml
./additional-resource/meta-inf.yml
YML_TEMPLATE_DIR: additional-resource/<%= terraform_config_path %>/template
CUSTOM_SCRIPT_DIR: additional-resource/<%= terraform_config_path %>/template
SUFFIX: -tpl.tfvars.yml
Expand Down
1 change: 1 addition & 0 deletions concourse/pipelines/template/cf-apps-pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ jobs:
./credentials-resource/<%= cf_app_info["base-dir"] %>/secrets/meta.yml
./credentials-resource/<%= cf_app_info["base-dir"] %>/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/<%= cf_app_info["base-dir"] %>/template
- task: push-<%= app_name %>
attempts: 2
Expand Down
1 change: 1 addition & 0 deletions concourse/pipelines/template/concourse-pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jobs:
YML_FILES: |
./credentials-resource/<%= depls %>/<%= name %>/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/<%= "#{depls}/#{name}/#{DeploymentDeployersConfig::CONCOURSE_CONFIG_DIRNAME}" %>
IAAS_TYPE: ((iaas-type))
- task: execute-<%= name %>-spiff-pre-deploy
Expand Down
1 change: 1 addition & 0 deletions concourse/pipelines/template/tf-pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
./credentials-resource/shared/secrets.yml
./credentials-resource/<%= terraform_config_path %>/secrets/meta.yml
./credentials-resource/<%= terraform_config_path %>/secrets/secrets.yml
./additional-resource/meta-inf.yml
YML_TEMPLATE_DIR: additional-resource/<%= terraform_config_path %>/template
CUSTOM_SCRIPT_DIR: additional-resource/<%= terraform_config_path %>/template
SUFFIX: -tpl.tfvars.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
"file" => "cf-ops-automation/concourse/tasks/generate-manifest.yml",
"params" =>
{ "YML_FILES" =>
"./credentials-resource/shared/secrets.yml\n./credentials-resource/my-tfstate-location/secrets/meta.yml\n./credentials-resource/my-tfstate-location/secrets/secrets.yml\n",
"./credentials-resource/shared/secrets.yml\n./credentials-resource/my-tfstate-location/secrets/meta.yml\n./credentials-resource/my-tfstate-location/secrets/secrets.yml\n./additional-resource/meta-inf.yml\n",
"YML_TEMPLATE_DIR" => "additional-resource/my-tfstate-location/template",
"CUSTOM_SCRIPT_DIR" => "additional-resource/my-tfstate-location/template",
"SUFFIX" => "-tpl.tfvars.yml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@
YML_FILES: |
./credentials-resource/#{root_deployment_name}/#{name}/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/#{root_deployment_name}/#{name}/#{DeploymentDeployersConfig::CONCOURSE_CONFIG_DIRNAME}
IAAS_TYPE: ((iaas-type))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
./credentials-resource/apps-depls/my_cf_app/secrets/meta.yml
./credentials-resource/apps-depls/my_cf_app/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/apps-depls/my_cf_app/template
- task: push-test-app
attempts: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ jobs:
./credentials-resource/delete-depls/secrets/meta.yml
./credentials-resource/delete-depls/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/delete-depls/template
IAAS_TYPE: ((iaas-type))
- in_parallel:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ jobs:
./credentials-resource/dummy-depls/secrets/meta.yml
./credentials-resource/dummy-depls/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/dummy-depls/template
IAAS_TYPE: ((iaas-type))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ jobs:
./credentials-resource/simple-depls/secrets/meta.yml
./credentials-resource/simple-depls/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/simple-depls/template
IAAS_TYPE: ((iaas-type))
- in_parallel:
Expand Down Expand Up @@ -330,6 +331,7 @@ jobs:
./credentials-resource/simple-depls/ntp-with-scan/secrets/meta.yml
./credentials-resource/simple-depls/ntp-with-scan/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/simple-depls/ntp-with-scan/template
IAAS_TYPE: ((iaas-type))
- task: execute-ntp-with-scan-spiff-pre-bosh-deploy
Expand Down Expand Up @@ -531,6 +533,7 @@ jobs:
./credentials-resource/simple-depls/zookeeper-without-scan/secrets/meta.yml
./credentials-resource/simple-depls/zookeeper-without-scan/secrets/secrets.yml
./credentials-resource/shared/secrets.yml
./additional-resource/meta-inf.yml
CUSTOM_SCRIPT_DIR: additional-resource/simple-depls/zookeeper-without-scan/template
IAAS_TYPE: "((iaas-type))"
- task: execute-zookeeper-without-scan-spiff-pre-bosh-deploy
Expand Down

0 comments on commit 671798a

Please sign in to comment.