Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ci/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,16 @@ jobs:
SECOND_DIR: environments/test/snitch/bbl-config
- task: update-infrastructure
<<: *lite-bbl-up-task-config
- task: bosh-extend-runtime-config
file: runtime-ci/tasks/bosh-extend-runtime-config/task.yml
input_mapping:
bbl-state: relint-envs
ops-file: relint-envs
params:
BBL_STATE_DIR: environments/test/snitch/bbl-state
OPS_FILE_PATH: environments/test/snitch/bbl-config/warden-noble-dns.yml
RUNTIME_CONFIG_NAME: dns

- put: lite-pool
params: {release: lite-pool}

Expand Down
15 changes: 15 additions & 0 deletions tasks/bosh-extend-runtime-config/task
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -exu

set -o pipefail

# Not able to resolve our import via shellcheck, so disable warning
# shellcheck disable=SC1091
source cf-deployment-concourse-tasks/shared-functions

function main() {
setup_bosh_env_vars

bosh update-runtime-config -n --name ${RUNTIME_CONFIG_NAME} <(bosh int <(bosh runtime-config --name ${RUNTIME_CONFIG_NAME}) -o ops-file/${OPS_FILE_PATH})
}

main
21 changes: 21 additions & 0 deletions tasks/bosh-extend-runtime-config/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
platform: linux

image_resource:
type: registry-image
source:
repository: cloudfoundry/bosh-cli

inputs:
- name: runtime-ci
- name: bbl-state
- name: ops-file
- name: cf-deployment-concourse-tasks

run:
path: runtime-ci/tasks/bosh-extend-runtime-config/task

params:
BBL_STATE_DIR: bbl-state
OPS_FILE_PATH:
RUNTIME_CONFIG_NAME: