Skip to content

Commit 1b5a7cc

Browse files
authored
Merge pull request #676 from cloudfoundry/extend_runtime_config_task
New task "bosh-extend-runtime-config" for fixing BOSH Lite config
2 parents 8224a52 + 61da175 commit 1b5a7cc

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

ci/infrastructure.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,16 @@ jobs:
982982
SECOND_DIR: environments/test/snitch/bbl-config
983983
- task: update-infrastructure
984984
<<: *lite-bbl-up-task-config
985+
- task: bosh-extend-runtime-config
986+
file: runtime-ci/tasks/bosh-extend-runtime-config/task.yml
987+
input_mapping:
988+
bbl-state: relint-envs
989+
ops-file: relint-envs
990+
params:
991+
BBL_STATE_DIR: environments/test/snitch/bbl-state
992+
OPS_FILE_PATH: environments/test/snitch/bbl-config/warden-noble-dns.yml
993+
RUNTIME_CONFIG_NAME: dns
994+
985995
- put: lite-pool
986996
params: {release: lite-pool}
987997

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash -exu
2+
3+
set -o pipefail
4+
5+
# Not able to resolve our import via shellcheck, so disable warning
6+
# shellcheck disable=SC1091
7+
source cf-deployment-concourse-tasks/shared-functions
8+
9+
function main() {
10+
setup_bosh_env_vars
11+
12+
bosh update-runtime-config -n --name ${RUNTIME_CONFIG_NAME} <(bosh int <(bosh runtime-config --name ${RUNTIME_CONFIG_NAME}) -o ops-file/${OPS_FILE_PATH})
13+
}
14+
15+
main
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: registry-image
6+
source:
7+
repository: cloudfoundry/bosh-cli
8+
9+
inputs:
10+
- name: runtime-ci
11+
- name: bbl-state
12+
- name: ops-file
13+
- name: cf-deployment-concourse-tasks
14+
15+
run:
16+
path: runtime-ci/tasks/bosh-extend-runtime-config/task
17+
18+
params:
19+
BBL_STATE_DIR: bbl-state
20+
OPS_FILE_PATH:
21+
RUNTIME_CONFIG_NAME:

0 commit comments

Comments
 (0)