Skip to content

Commit

Permalink
Add FORCE_LATEST_VARIABLES param to apply changes tasks (#52)
Browse files Browse the repository at this point in the history
Depends on [this om pr](pivotal-cf/om#608)

[#186967065]
  • Loading branch information
selzoc authored Jul 19, 2024
1 parent d561f53 commit ad5802a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/apply-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ if [ "${IGNORE_WARNINGS}" == "true" ]; then
flags+=("--ignore-warnings")
fi

if [ "${FORCE_LATEST_VARIABLES}" == "true" ]; then
flags+=("--force_latest_variables")
fi

if [ -n "${ERRAND_CONFIG_FILE}" ]; then
flags+=("--config" "${ERRAND_CONFIG_FILE}")
fi
Expand Down
8 changes: 8 additions & 0 deletions tasks/apply-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ params:
# - This is not recommended unless unless the warning failure(s)
# are well understood.

FORCE_LATEST_VARIABLES: false
# - Optional
# - If true, will instruct OpsMan to deploy with the latest
# version of all BOSH variables, even if no stemcells are
# being upgraded.
# - This is to provide an alternative to stemcell updates
# in order to manually rotate automatically-rotated certificates.

SELECTIVE_DEPLOY_PRODUCTS:
# - Optional
# - Comma separated list of products for apply changes.
Expand Down
4 changes: 4 additions & 0 deletions tasks/stage-configure-apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ if [ "${IGNORE_WARNINGS}" == "true" ]; then
flags+=("--ignore-warnings")
fi

if [ "${FORCE_LATEST_VARIABLES}" == "true" ]; then
flags+=("--force_latest_variables")
fi

if [ -n "${ERRAND_CONFIG_FILE}" ]; then
flags+=("--config" "config/${ERRAND_CONFIG_FILE}")
fi
Expand Down
8 changes: 8 additions & 0 deletions tasks/stage-configure-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ params:
# - This is not recommended unless unless the warning failure(s)
# are well understood.

FORCE_LATEST_VARIABLES: false
# - Optional
# - If true, will instruct OpsMan to deploy with the latest
# version of all BOSH variables, even if no stemcells are
# being upgraded.
# - This is to provide an alternative to stemcell updates
# in order to manually rotate automatically-rotated certificates.

run:
path: platform-automation-tasks/tasks/stage-configure-apply.sh
# code_snippet stage-configure-apply end

0 comments on commit ad5802a

Please sign in to comment.