Task Reference
Platform Automation Toolkit Tasks
This document lists each Platform Automation Toolkit task, and provides information about their intentions, inputs, and outputs.
The tasks are presented, in their entirety, as they are found in the product.
The docker image can be used to invoke the commands in each task locally.
Use --help
for more information.
To learn more see the running-commands-locally section.
activate-certificate-authority
Ensures that the newest certificate authority on Ops Manager is active.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 |
|
apply-changes
Triggers an install on the Ops Manager described by the auth file.
To optionally provide an errand file to manually control errands
for a particular of run of apply-changes
.
To see an example of this config file, see the Inputs and Outputs section.
Info
Ops Manager Verifier failures when applying changes will prevent deployment.
In cases where these verifiers are incorrectly failing for known reasons,
they should be disabled using om.
The IGNORE_WARNINGS
parameter for the
apply-changes
, stage-configure-apply
, and apply-director-changes
tasks
allows users to ignore all warnings from ignorable verifiers.
In an automation context, disabling only the particular verifiers
where failure is well-understood allows other verifiers
to continue to provide important feedback.
Some verifiers continue to return warnings even when disabled,
preventing deployment without the IGNORE_WARNINGS: true
param set.
If the verifiers that are preventing deployment
are known issues based on the environment setup,
then it is safe to use the flag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 5 6 7 8 |
|
apply-director-changes
apply-changes
can also be used to trigger an install for just the BOSH Director
with the --skip-deploy-products
/-sdp
flag.
Info
Ops Manager Verifier failures when applying changes will prevent deployment.
In cases where these verifiers are incorrectly failing for known reasons,
they should be disabled using om.
The IGNORE_WARNINGS
parameter for the
apply-changes
, stage-configure-apply
, and apply-director-changes
tasks
allows users to ignore all warnings from ignorable verifiers.
In an automation context, disabling only the particular verifiers
where failure is well-understood allows other verifiers
to continue to provide important feedback.
Some verifiers continue to return warnings even when disabled,
preventing deployment without the IGNORE_WARNINGS: true
param set.
If the verifiers that are preventing deployment
are known issues based on the environment setup,
then it is safe to use the flag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 |
|
assign-multi-stemcell
assign-multi-stemcell
assigns multiple stemcells to a provided product.
This feature is only available in OpsMan 2.6+.
For more information on how to utilize this workflow,
check out the Stemcell Handling topic.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 |
|
1 2 3 4 5 |
|
assign-stemcell
assign-stemcell
assigns a stemcell to a provided product.
For more information on how to utilize
this workflow, check out the Stemcell Handling topic.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
1 2 3 4 |
|
1 2 3 4 5 |
|
backup-director
Use BBR to backup a BOSH director deployed with Ops Manager.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
1 2 3 4 5 |
|
backup-product
Use BBR to backup a product deployed with Ops Manager.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 5 6 7 |
|
backup-tkgi
Use BBR to backup Tanzu Kubernetes Grid Integrated Edition(TKGI) deployed with Ops Manager.
PKS CLI may be Temporarily Unavailable
During the backup, the PKS CLI is disabled. Due to the nature of the backup, some commands may not work as expected.
Known Issue
When using the task backup-tkgi
behind a proxy
the values for no_proxy
can affect the ssh (though jumpbox) tunneling.
When the task invokes the bbr
CLI, an environment variable (BOSH_ALL_PROXY
) has been set,
this environment variable tries to honor the no_proxy
settings.
The task's usage of the ssh tunnel requires the no_proxy
to not be set.
If you experience an error, such as an SSH connection refused or connection timeout,
try setting the no_proxy: ""
as params
on the task.
For example,
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
1 2 3 4 5 6 |
|
check-pending-changes
Returns a table of the current state of your Ops Manager
and lists whether each product is changed or unchanged and the errands for that product.
By default, ALLOW_PENDING_CHANGES: false
will force the task to fail.
This is useful to keep manual changes from being accidentally applied
when automating the configure-product/apply-changes of other products.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 |
|
collect-telemetry
Collects foundation information using the Telemetry Collector tool.
This task requires the telemetry-collector-binary
as an input.
The binary is available on Tanzu Network;
you will need to define a resource
to supply the binary.
This task requires a config file.
After using this task, the send-telemetry may be used to send telemetry data to VMware.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
1 2 3 4 5 6 7 8 9 |
|
configure-authentication
Configures Ops Manager with an internal userstore and admin user account. See configure-saml-authentication to configure an external SAML user store, and configure-ldap-authentication to configure with LDAP.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
For details on the config file expected in the config
input,
please see Generating an Auth File.
configure-director
Configures the BOSH Director with settings from a config file. See staged-director-config, which can extract a config file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
GCP with service account
For GCP, if service account is used, the property associated_service_account has to be set explicitly in the iaas_configuration
section.
configure-ldap-authentication
Configures Ops Manager with an external LDAP user store and admin user account. See configure-authentication to configure an internal user store, and configure-saml-authentication to configure with SAML.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 |
|
For more details on using LDAP, please refer to the Ops Manager documentation.
For details on the config file expected in the config
input,
please see Generating an Auth File.
configure-opsman
This task supports configuring settings on the Ops Manager Settings page in the UI. For example, the SSL cert for the Ops Manager VM can be configured.
Configuration can be added directly to opsman.yml
.
An example of all configurable properties can be found in the "Additional Settings" tab.
The upgrade-opsman
task will automatically call configure-opsman
,
so there is no need to use this task then.
It is recommended to use this task in the initial setup of the Ops Manager VM.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
configure-product
Configures an individual, staged product with settings from a config file.
Not to be confused with Ops Manager's built-in import, which reads all deployed products and configurations from a single opaque file, intended for import as part of backup/restore and upgrade lifecycle processes.
See staged-config, which can extract a config file, and upload-and-stage-product, which can stage a product that's been uploaded.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
configure-new-certificate-authority
Create a new certificate authority on Ops Manager. This can either create a
new CA using Credhub or create a new CA using a provided certificate and
private key in PEM format via the certs/
input.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 |
|
configure-saml-authentication
Configures Ops Manager with an external SAML user store and admin user account. See configure-authentication to configure an internal user store, and configure-ldap-authentication to configure with LDAP.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 |
|
Bosh Admin Client
By default, this task creates a bosh admin client. This is helpful for some advanced workflows that involve communicating directly with the BOSH Director. It is possible to disable this behavior; see our config file documentation for details.
Configuring SAML has two different auth flows for the UI and the task.
The UI will have a browser based login flow.
The CLI will require client-id
and client-secret
as it cannot do a browser login flow.
For more details on using SAML, please refer to the Ops Manager documentation
For details on the config file expected in the config
input,
please see Generating an Auth File.
create-vm
Creates an unconfigured Ops Manager VM.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
This task requires a config file specific to the IaaS being deployed to. Please see the configuration page for more specific examples.
The task does specific CLI commands for the creation of the Ops Manager VM on each IAAS. See below for more information:
AWS
- Requires the image YAML file from Tanzu Network
- Validates the existence of the VM if defined in the statefile, if so do nothing
- Chooses the correct ami to use based on the provided image YAML file from Tanzu Network
- Creates the VM configured via opsman config and the image YAML. This only attaches existing infrastructure to a newly created VM. This does not create any new resources
- The public IP address, if provided, is assigned after successful creation
Azure
- Requires the image YAML file from Tanzu Network
- Validates the existence of the VM if defined in the statefile, if so do nothing
- Copies the image (of the OpsMan VM from the specified region) as a blob into the specified storage account
- Creates the Ops Manager image
- Creates a VM from the image. This will use unmanaged disk (if specified), and assign a public and/or private IP. This only attaches existing infrastructure to a newly createdVM. This does not create any new resources.
GCP
- Requires the image YAML file from Tanzu Network
- Validates the existence of the VM if defined in the statefile, if so do nothing
- Creates a compute image based on the region specific Ops Manager source URI in the specified Ops Manager account
- Creates a VM from the image. This will assign a public and/or private IP address, VM sizing, and tags. This does not create any new resources.
Openstack
- Requires the image YAML file from Tanzu Network
- Validates the existence of the VM if defined in the statefile, if so do nothing
- Recreates the image in openstack if it already exists to validate we are using the correct version of the image
- Creates a VM from the image. This does not create any new resources
- The public IP address, if provided, is assigned after successful creation
Vsphere
- Requires the OVA image from Tanzu Network
- Validates the existence of the VM if defined in the statefile, if so do nothing
- Build ipath from the provided datacenter, folder, and vmname provided in the config file. The created VM is stored on the generated path. If folder is not provided, the VM will be placed in the datacenter.
- Creates a VM from the image provided to the
create-vm
command. This does not create any new resources
credhub-interpolate
Interpolate credhub entries into configuration files
Deprecation Notice
This task will be deprecated in future major versions of Platform Automation Toolkit.
prepare-tasks-with-secrets
The prepare-tasks-with-secrets task replaces the credhub-interpolate task on Concourse versions 5.x+ and provides additional benefits.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
This task requires a valid credhub with UAA client and secret. For information on how to set this up, see Secrets Handling
delete-certificate-authority
Delete all inactive certificate authorities from the Ops Manager.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 |
|
delete-installation
Delete the Ops Manager Installation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 |
|
1 2 3 4 5 6 7 |
|
delete-vm
Deletes the Ops Manager VM instantiated by create-vm.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
This task requires the state file generated create-vm.
The task does specific CLI commands for the deletion of the Ops Manager VM and resources on each IAAS. See below for more information:
AWS
- Deletes the VM
Azure
- Deletes the VM
- Attempts to delete the associated disk
- Attempts to delete the associated nic
- Attempts to delete the associated image
GCP
- Deletes the VM
- Attempts to delete the associated image
Openstack
- Deletes the VM
- Attempts to delete the associated image
vSphere
- Deletes the VM
download-and-upload-product
This is an advanced task. If a product (and its associated stemcell) has already been uploaded to Ops Manager then it will not re-download and upload. This is helpful when looking for a fast-feedback loop for building pipelines.
This task is similar to download-product
,
as it takes the same product config.
There are no outputs
for this task
because the products (and stemcell) don't need to be shared downstream.
Warning
This currently only works with product source being Tanzu Network (Pivotal Network).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
1 2 3 4 5 6 7 8 9 |
|
download-product
Ops Manager 2.5
The filename for the artifact downloaded from Ops Manager is changed! If your resources or pipelines have a regex for the Ops Manager filename, you may be affected. (Please see Ops Manager's official notice for more information)
Downloads a product specified in a config file from Tanzu Network(pivnet
), S3(s3
), GCS(gcs
), or Azure(azure
).
Optionally, also downloads the latest stemcell for that product.
Downloads are cached, so files are not re-downloaded each time. When downloading from Tanzu Network, the cached file is verified using the Tanzu Network checksum to validate the integrity of that file. If it does not, the file is re-downloaded. When downloading from a supported blobstore the cached file is not-verified, as there is no checksum from those blobstore APIs to use.
Outputs can be persisted to any supported blobstore using a put
to an appropriate resource
for later use with download-product using the SOURCE
parameter,
or used directly as inputs to upload-and-stage-product
and upload-stemcell tasks.
This task requires a download-product config file.
If stemcell-iaas is specified in the download-product config file,
and the specified product is a .pivotal
file,
download-product
will attempt to download the stemcell for the product.
It will retrieve the latest compatible stemcell for the specified IaaS.
The valid IaaSs are:
aws
azure
google
openstack
vsphere
If a configuration for S3, GCS, or Azure is present in the download-product config file,
the slug and version of the downloaded product file will be prepended in brackets to the filename.
For example:
-
original-pivnet-filenames:
1 2
ops-manager-aws-2.5.0-build.123.yml cf-2.5.0-build.45.pivotal
-
download-product-filenames if blobstore configuration is present:
1 2
[ops-manager,2.5.0]ops-manager-aws-2.5.0-build.123.yml [elastic-runtime,2.5.0]cf-2.5.0-build.45.pivotal
This is to allow the same config parameters that let us select a file from Tanzu Network select it again when pulling from the supported blobstore. Note that the filename will be unchanged if supported blobstore keys are not present in the configuration file. This avoids breaking current pipelines.
When using the s3 resource in concourse
If you are using a regexp
in your s3 resource definition
that explicitly requires the Tanzu Network filename
to be the start of the regex, (i.e., the pattern starts with ^
)
this won't work when using S3 config.
The new file format preserves the original filename,
so it is still possible to match on that -
but if you need to match from the beginning of the filename,
that will have been replaced by the prefix described above.
When specifying Tanzu Application Service-Windows
This task will automatically download and inject the winfs for pas-windows.
When specifying Tanzu Application Service-Windows on Vsphere
This task cannot download the stemcell for pas-windows on vSphere. To build this stemcell manually, please reference the Creating a vSphere Windows Stemcell guide in VMware Documentation.
When only downloading from Tanzu Network
When the download product config only has Tanzu Network credentials,
it will not add the prefix to the downloaded product.
For example, example-product.pivotal
from Tanzu Network will be outputed
as example-product.pivotal
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
expiring-certificates
Returns a list of certificates that are expiring within a time frame. These certificates can be Ops Manager or Credhub certificates. Root CAs cannot be included in this list until Ops Manager 2.7. This is purely an informational task.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
export-installation
Exports an existing Ops Manager to a file.
This is the first part of the backup/restore and upgrade lifecycle processes. This task is used on a fully installed and healthy Ops Manager to export settings to an upgraded version of Ops Manager.
To use with non-versioned blobstore, you can override INSTALLATION_FILE
param
to include $timestamp
, then the generated installation file will include a sortable
timestamp in the filename.
example:
1 2 |
|
Info
The timestamp is generated using the time on concourse worker. If the time is different on different workers, the generated timestamp may fail to sort correctly. Changing the time or timezone on workers might interfere with ordering.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 |
|
Always Export your Installation
It is recommended to persist the zip file exported from export-installation to an external file store (eg S3) on a regular basis. The exported installation can restore the Ops Manager to a working state if it is non-functional.
generate-certificate
Generate a certificate, signed by the active Ops Manager certificate authority,
for the domains specified in the DOMAINS
environment variable.
This task outputs certificate
, containing certificate.pem
and
privatekey.pem
for the new certificate.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
1 2 3 4 5 6 |
|
import-installation
Imports a previously exported installation to Ops Manager.
This is a part of the backup/restore and upgrade lifecycle processes. This task is used after an installation has been exported and a new Ops Manager has been deployed, but before the new Ops Manager is configured.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 |
|
make-git-commit
Copies a single file into a repo and makes a commit. Useful for persisting the state output of tasks that manage the VM, such as:
Also useful for persisting the configuration output from:
Info
This commits all changes present
in the repo used for the repository
input,
in addition to copying in a single file.
Info
This does not perform a git push
!
You will need to put
the output of this task to a git resource to persist it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
pre-deploy-check
Checks if the Ops Manager director is configured properly and validates the configuration.
This feature is only available in Ops Manager 2.6+.
Additionally, checks each of the staged products
and validates they are configured correctly.
This task can be run at any time
and can be used a a pre-check for apply-changes
.
The checks that this task executes are:
- is configuration complete and valid
- is the network assigned
- is the availability zone assigned
- is the stemcell assigned
- what stemcell type/version is required
- are there any unset/invalid properties
- did any ops manager verifiers fail
If any of the above checks fail
the task will fail.
The failed task will provide a list of errors that need to be fixed
before an apply-changes
could start.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 |
|
prepare-image
This task modifies the container image with runtime dependencies.
CA_CERTS
can be added,
which can help secure HTTP connections with a proxy server
and allows the use of a custom CA on the Ops Manager.
Concourse 5+ Only
This task uses a Concourse feature
that allows inputs and outputs to have the same name.
This feature is only available in Concourse 5+.
prepare-image
does not work with Concourse 4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
1 2 3 4 5 |
|
prepare-tasks-with-secrets
Modifies task files to include variables needed for config files as environment variables for run-time interpolation from a secret store. Learn more about secrets handling.
Concourse 5+ Only
This task uses a Concourse feature
that allows inputs and outputs to have the same name.
This feature is only available in Concourse 5+.
prepare-tasks-with-secrets
does not work with Concourse 4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
regenerate-certificates
Regenerates all non-configurable leaf certificates managed by Ops Manager using the active certificate authority.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 |
|
replicate-product
Will replicate the product for use in isolation segments. The task requires a downloaded product prior to replication. The output is a replicated tile with a new name in the metadata and filename.
Using replicate-product
This command does not support storing the replicated product in a non-versioned blobstore, because it cannot generate a unique name. It is recommended to use the replicated tile immediately in the next task rather than storing it and using it in a different job.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 |
|
revert-staged-changes
Reverts all changes that are currently staged on the Ops Manager. This is only available for Ops Manager 2.5.21+, 2.6.13+, or 2.7.2+
Using revert-staged-changes
Since this reverts all changes on an Ops Manager, it can conflict with tasks that perform stage or configure operations. Use passed constraints to ensure things run in the order you mean them to.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 |
|
run-bosh-errand
Runs a specified BOSH errand directly on the BOSH Director by tunneling through Ops Manager.
Interacting with the BOSH Director
Ops Manager is the main interface for interacting with BOSH, and it has no way of knowing what is happening to the BOSH Director outside of the Ops Manager UI context. By using this task, you are accepting the risk that what you are doing cannot be tracked by your Ops Manager.
Retrying Errands
Ops Manager, by design, will re-run failed errands for you.
As this task interacts with BOSH directly,
your errand will not be re-run if it fails.
To replicate this retry behavior in your pipeline,
you can take advantage of the attempts
feature
of Concourse to run the task more than once.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
1 2 3 4 5 6 7 8 9 10 |
|
send-telemetry
Sends the .tar
output from collect-telemetry
to VMware.
Info
In order to use this task, you will need to acquire a license key. Contact your VMware Representative.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 |
|
stage-configure-apply
This is an advanced task. Stage a product to Ops Manager, configure that product, and apply changes only to that product without applying changes to the rest of the foundation.
Info
Ops Manager Verifier failures when applying changes will prevent deployment.
In cases where these verifiers are incorrectly failing for known reasons,
they should be disabled using om.
The IGNORE_WARNINGS
parameter for the
apply-changes
, stage-configure-apply
, and apply-director-changes
tasks
allows users to ignore all warnings from ignorable verifiers.
In an automation context, disabling only the particular verifiers
where failure is well-understood allows other verifiers
to continue to provide important feedback.
Some verifiers continue to return warnings even when disabled,
preventing deployment without the IGNORE_WARNINGS: true
param set.
If the verifiers that are preventing deployment
are known issues based on the environment setup,
then it is safe to use the flag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
stage-product
Staged a product to the Ops Manager specified in the config file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
1 2 3 4 5 6 7 8 |
|
staged-config
Downloads the configuration for a product from Ops Manager.
Not to be confused with Ops Manager's built-in export, which puts all deployed products and configurations into a single file, intended for import as part of backup/restore and upgrade lifecycle processes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
staged-director-config
Ops Manager 2.5
The filename for the artifact downloaded from Ops Manager is changed! If your resources or pipelines have a regex for the Ops Manager filename, you may be affected. (Please see Ops Manager's official notice for more information)
Downloads configuration for the BOSH director from Ops Manager.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 |
|
The configuration is exported to the generated-config
output.
It does not extract credentials from Ops Manager
and replaced them all with YAML interpolation (())
placeholders.
This is to ensure that credentials are never written to disk.
The credentials need to be provided from an external configuration when invoking configure-director.
Info
staged-director-config will not be able to grab all sensitive fields in your Ops Manager installation (for example: vcenter_username and vcenter_password if using vsphere). To find these missing fields, please refer to the Ops Manager API Documentation
test
An example task to ensure the assets and docker image are setup correctly in your concourse pipeline.
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 |
|
test-interpolate
An example task to ensure that all required vars are present when interpolating into a base file. For more instruction on this topic, see the variables section
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
1 2 3 4 5 6 7 8 |
|
update-runtime-config
This is an advanced task. Updates a runtime config on the Ops Manager deployed BOSH director. The task will interact with the BOSH director (sometimes via SSH tunnel through the Ops Manager), upload BOSH releases, and set a named runtime config. This is useful when installing agents on BOSH deployed VMs that don't have a Ops Manager tile.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Warn
When using runtime configs, Ops Manager owns the default runtime config.
If you use this task to edit "default" it will be replaced on every Apply Changes.
Please use NAME
param to provide a non-conflicting runtime config.
upgrade-opsman
Upgrades an existing Ops Manager to a new given Ops Manager version
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
For more information about this task and how it works, see the upgrade page.
upload-and-stage-product
Uploads and stages product to the Ops Manager specified in the config file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
1 2 3 4 5 6 7 8 |
|
upload-product
Uploads a product to the Ops Manager specified in the config file.
If a shasum is provided in the config.yml, the integrity product will be verified with that shasum before uploading.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 |
|
upload-stemcell
Uploads a stemcell to Ops Manager.
Note that the filename of the stemcell must be exactly as downloaded from Tanzu Network. Ops Manager parses this filename to determine the version and OS of the stemcell.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 |
|