Using Deploy Config
Note
This feature is available with CLI v7.5.0+.
The Director has a way to specify global flags for all deploy commands. The deploy config is a YAML file that defines global flags that apply to all deployments.
Updating and retrieving deploy config¶
To update deploy config on the Director use bosh update-config --type deploy --name <your_configs_name> <your_file>
CLI command.
Note
See example deploy config below.
bosh update-config --type deploy --name test deploy.yml bosh config --type deploy --name test
Acting as user 'admin' on 'micro' flags: - recreate - fix-releases include: - test_deployment
The Director will apply the specified flags for the specified deployments during the next bosh deploy
for that deployment.
Example¶
flags: - recreate - fix-releases include: - foo
You can include and exclude deployments by using EITHER the include
or exclude
property. The example above will only apply the flags if the deployment "foo" gets deployed.
In contrast, the example config below will ensure that only for the "foo" deployment the flags will NOT be applied. Only specifying the flags
property will apply the flags for all deployments.
flags: - recreate - fix-releases exclude: - foo