Skip to content

Latest commit

 

History

History
68 lines (64 loc) · 2.57 KB

File metadata and controls

68 lines (64 loc) · 2.57 KB

Concourse Deployment Patterns

How to create a remote concourse worker

  1. Obtain the following information:
    1. Download the remote-worker-vsphere.yml in this folder
    2. From Concourse Deployment
      1. A private key for a public key in (tsa -> authorized_keys)
      2. A public key for (tsa -> host_key -> public_key)
      3. TSA host (your web address for concourse. external_url)
    3. vSphere details
      1. vcenter_ip # eg vsphere.company.com
      2. vcenter_user # administrator@domain
      3. vcenter_password # password
      4. vcenter_dc # Datacenter1
      5. vcenter_vms #concourse_worker_folder
      6. vcenter_templates #concourse_worker_template
      7. vcenter_ds # datastore1
      8. vcenter_disks # concourse_worker_disks
      9. vcenter_cluster # Cluster1
      10. vcenter_rp # RP1
      11. internal_ip # 192.168.1.11
      12. network_name # vwire-1
      13. internal_dns # 198.168.20.20
      14. internal_gw # 192.168.1.1
      15. internal_cidr # 192.168.1.1/24
    4. Worker Details
      1. external_worker_tags
    5. Release Versions
      1. Get latest from bosh.io
  2. From an opsmgr or other jumpbox on the remote network , run bosh create-env with the variables gathered (see example command below)

Save creds.yml and state.json to a secure place.

Example

bosh create-env \
   remote-worker-vsphere.yml \
   --state=state.json \
   --vars-store=creds.yml \
   -v hashed_password='use mkpasswd -s -m sha-512' \
   -v internal_cidr='192.168.10.0/26' \
   -v internal_gw=192.168.10.1 \
   -v internal_ip=192.168.10.60 \
   -v network_name=vwire-03 \
   -v vcenter_dc=Datacenter \
   -v vcenter_ds=a-xio \
   -v vcenter_ip=10.193.156.11 \
   -v vcenter_user=administrator@vsphere.local \
   -v vcenter_password='password' \
   -v vcenter_templates=concourse-worker-templates \
   -v vcenter_vms=concourse-vms \
   -v vcenter_disks=concourse-worker-disks \
   -v vcenter_cluster=Cluster-A \
   -v vcenter_rp=A-RP01 \
   -v internal_dns='[10.193.134.2]' \
   -v ntp_servers='[10.193.134.2]' \
   -v tsa_host=xx \
   -v tsa_host_public_key=xx \
   -v external_worker_tags='[c0lrp01]' \
   -v external_worker_private_key=xx \
   -v postgres_version=28 \
   -v postgres_sha1=c1fcec62cb9d2e95e3b191e3c91d238e2b9d23fa \
   -v concourse_version=3.13.0 \
   -v concourse_sha1=fb3bedc9f9bf2304449b90c86f6d624a6819d363 \
   -v garden_runc_version=1.13.1 \
   -v garden_runc_sha1=54cbb89cae1be0708aa056185671665d7f4b2a4f