github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/ci/cli/tasks/cats-config.yml (about)

     1  
     2  ---
     3  platform: linux
     4  image: docker:///cloudfoundry/cli-ci
     5  
     6  inputs:
     7    - name: bosh-lite-lock
     8  
     9  outputs:
    10    - name: cats-config
    11  
    12  params:
    13    BACKEND:
    14    INCLUDE_V3:
    15    BROKER_START_TIMEOUT:
    16    CF_PUSH_TIMEOUT:
    17    DEFAULT_TIMEOUT:
    18    LONG_CURL_TIMEOUT:
    19  
    20  run:
    21    path: bash
    22    args:
    23    - -c
    24    - |
    25      set -eux
    26  
    27      export DOMAIN=`cat bosh-lite-lock/name`
    28  
    29      if [[ $BACKEND == "diego" ]]; then
    30        export IS_DIEGO_ENABLED=true
    31      else
    32        export IS_DIEGO_ENABLED=false
    33      fi
    34  
    35      cat << EOF | jq -S . > cats-config/integration_config.json
    36      {
    37        "admin_password": "admin",
    38        "admin_user": "admin",
    39        "api": "api.$DOMAIN",
    40        "apps_domain": "$DOMAIN",
    41        "backend" : "$BACKEND",
    42        "broker_start_timeout": $BROKER_START_TIMEOUT,
    43        "cf_push_timeout": $CF_PUSH_TIMEOUT,
    44        "default_timeout": $DEFAULT_TIMEOUT,
    45        "long_curl_timeout": $LONG_CURL_TIMEOUT,
    46        "skip_ssl_validation": true,
    47        "use_http": false,
    48        "include_v3": $INCLUDE_V3,
    49        "include_apps": true,
    50        "include_backend_compatibility": true,
    51        "include_detect": true,
    52        "include_docker": $IS_DIEGO_ENABLED,
    53        "include_internet_dependent": true,
    54        "include_privileged_container_support": false,
    55        "include_route_services": true,
    56        "include_routing": true,
    57        "include_zipkin": false,
    58        "include_security_groups": true,
    59        "include_services": true,
    60        "include_ssh": $IS_DIEGO_ENABLED,
    61        "include_sso": false,
    62        "include_tasks": false
    63      }
    64      EOF