Skip to content

Cloud Foundry

Repository or bucket

Top-level module contains information about the repository or bucket that is being used to configure the pipelines and deploy the platform.

Required parameters:

  • source_type - "package" or "repository"

Depending on the source type parameters are:

Repository

  • repo_url - URL to the cb-k8s-deployment repository
  • repo_version - Repository branch
  • repo_private_key_var_name - name of the credhub key which contains git private key that can be used to access the repository.

Bucket

  • package_bucket - Bucket name
  • package_target_cloud - Cloud type ("openstack", "aws")
  • package_version - Version ("latest" or specific like "1.0.0")

Pipelines

Avialable pipelines:

  • deploy_cf - pipeline to deploy the platform
  • backup_cf - backup pipeline
  • restore_cf - restore from backup pipeline
  • cf_smoke_tests - smoke tests pipeline

Optional parameters

Extension ops files

  • extensions_bucket_name - Bucket name for extension ops files
  • extensions_cf_directory - Directory name for cloud foundry deployment extension ops files in extensions bucket
  • extensions_cf_properties - Properties filename for extension ops
  • extensions_provider_directory - Directory name for cloud provider specific extension ops files in extensions bucket
  • extensions_provider_properties - Properties filename for extension ops

Example

{
    "repo_url": "git@ssh.dev.azure.com:v3/grape-up/cloudboostr/cb-cf-deployment",
    "repo_version": "openstack",
    "repo_private_key_var_name": "git_private_key",

    "pipelines": [
        {
            "name": "deploy_cf",
            "file": "ci/pipelines/openstack/deploy_pipeline.yml",
            "vars": [
                {"name": "trigger_on_repo_change", "value": "false"}
            ]
        },
        {
            "name": "backup_cf",
            "file": "ci/pipelines/openstack/backup_pipeline.yml",
            "vars": [
                {"name": "backup_interval", "value": "48h"}
            ]
        },
        {
            "name": "restore_cf",
            "file": "ci/pipelines/openstack/restore_pipeline.yml",
            "vars": [
            ]
        },
        {
            "name": "cf_smoke_tests",
            "file": "ci/pipelines/openstack/cf_smoke_tests_pipeline.yml",
            "vars": []
        }
    ],

    "vars": [
        {"name": "extensions_bucket_name", "value": ""},
        {"name": "extensions_cf_directory", "value": "openstack/env/cb-cf-deployment"},
        {"name": "extensions_cf_properties", "value": "cf.properties"},
        {"name": "extensions_provider_directory", "value": "openstack/env/cb-cf-provider-deployment"},
        {"name": "extensions_provider_properties", "value": "cf-provider.properties"}
    ]
}