Upgrade
Here is the list of upgrade notes for major breaking changes that you need to be aware of when migrating between the BitOps versions.
v2.4#
ANSIBLE_ROOTENV var in Ansible plugin was removed. UseBITOPS_OPSREPO_ENVIRONMENT_DIRinstead, which is consistent across all plugins.- Plugin environment variables are now automatically mapped to the plugin schema. This means that you can now use the same environment variable names as in the plugin schema. For example, if you want to override the
ansible.cli.skip-tagsvalue, you can now use theBITOPS_ANSIBLE_SKIP_TAGSenvironment variable. This is true for all the plugins. The precedence order is:ENVvars >bitops.config.yamlvalues >bitops.config.schema.yamldefaults. Keep the new convention in mind when upgrading tov2.4as it may clash with your existing environment variables.
v2.2#
-
Terraform plugin
stack-actionwas moved fromoptionstoclisection inbitops.config.yaml. You need to update your configuration from old:to the new format:terraform: cli: {} options: stack-action: "plan"terraform: cli: stack-action: "plan" options: {} -
ENV variables used to skip an individual plugin deployment were updated to follow a common consistent format:
SKIP_DEPLOY_TERRAFORM->TERRAFORM_SKIP_DEPLOYSKIP_DEPLOY_HELM->HELM_SKIP_DEPLOYSKIP_DEPLOY_ANSIBLE->ANSIBLE_SKIP_DEPLOYSKIP_DEPLOY_CLOUDFORMATION->CFN_SKIP_DEPLOY
v2.0#
BitOps Core#
CHANGED: ENVIRONMENT -> BITOPS_ENVIRONMENT var#
BitOps is no longer using the ENVIRONMENT value, it instead uses BITOPS_ENVIRONMENT.
Please rename your variables.
CHANGED: BITOPS_ Export Prefixes#
BitOps core exported environment variables now have a prefix of BITOPS_.
Examples
BITOPS_TERRAFORM_ENV_VARBITOPS_ANSIBLE_ENV_VAR
CHANGED: bitops.config.yaml stack-action#
Ops repo level bitops.config.yaml have had one important update; The CLI attribute stack-action has been added. This attribute is used to tell the BitOps plugin which method it is invoking.
For example, the terraform plugin has 3 stack-actions: plan, apply, destroy.
Old method
terraform:
cli: {}
options:
command: apply
New method
terraform:
cli: {}
options:
stack-action: apply
This pattern is now used by BitOps to standardize how a plugin specifies an action.
NEW: Default Folder Configuration#
A new attribute was added to bitops.config.yaml to define the default folder name. This attribute is evaluated when building a BitOps custom image.
New method
bitops:
default_folder: _default
The compatible environment variable to override this setting is BITOPS_DEFAULT_FOLDER.
Plugins#
Ansible#
depreciated attributes
ansible.cli.vault_idansible.cli.vault_passwordansible.options.verbosity
Terraform#
new attributes
ansible.options.init-upgrade
Helm#
changed attributes
helm.options.uninstall-charts--> Changed to -->helm.options.uninstallhelm.options.kubeconfig.fetch.enabled--> Changed to -->helm.options.k8s.fetch.kubeconfig
new attributes
helm.options.default-root-dirhelm.options.default-dir-flaghelm.options.default-sub-dir
Cloudformation#
changed attributes
cloudformation.options.cfn-files.parameters.enabled--> Changed to -->cloudformation.options.cfn-files.parameters.template-param-flagcloudformation.options.cfn-files.parameters.template-file--> Changed to -->cloudformation.options.cfn-files.parameters.template-param-file
new attributes
cloudformation.options.s3bucketcloudformation.options.s3prefix