Concourse: v1.2.3
PCF-Pipelines: Latest
git clone https://github.com/pivotal-cf/pcf-pipelines
# Copyright 2017-Present Pivotal Software, Inc. All rights reserved.
#
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
#
opsman_timeout_seconds: 3600 # time to wait for new OM VM to come up
#
## Either opsman_client_id/opsman_client_secret or opsman_admin_username/opsman_admin_password needs to be specified
## If you are using opsman_admin_username/opsman_admin_password, edit opsman_client_id/opsman_client_secret to be an empty value.
## If you are using opsman_client_id/opsman_client_secret, edit opsman_admin_username/opsman_admin_password to be an empty value.
opsman_client_id:
opsman_client_secret:
opsman_admin_username:
opsman_admin_password:
opsman_ssh_password: XXXXXXXX # ubuntu user ssh password
opsman_major_minor_version: ^2\.0\.[0-9]+$ # Ops Manager minor version to track (e.g ^2\.0\.[0-9]+$ will track 2.0.x versions) # Ops Manager minor version to track
opsman_domain_or_ip_address: XXXXXXXXXXXXX #FQDN to access Ops Manager without protocol (will use https), ex: opsmgr.example.com
opsman_passphrase: XXXXXXXXXXXXXX
pivnet_token: XXXXXXXXXX # value must be a Pivotal Network legacy token; UAA API tokens do not work currently work
# Do not specify with a trailing slash.
vcenter_url: http://vcenter01.cglab.localnet.local
vcenter_username: [email protected]
vcenter_password: XXXXXXXXXXXXXX
vcenter_datacenter: CGLAB
vcenter_datastore: 00-SIO-PCF1_Persistent_01
vcenter_insecure: true
vcenter_ca_cert:
# vCenter Cluster or Resource Pool to use to deploy Ops Manager.
# # Possible formats:
# # cluster: /<Data Center Name>/host/<Cluster Name>
# # resource pool: /<Data Center Name>/host/<Cluster Name>/Resources/<Resource Pool Name>
vcenter_cluster: Zone01
vcenter_resource_pool: LABWORKS-CG
om_vm_folder: LABWORKS_vms
opsman_ip: 192.168.20.10
netmask: 255.255.255.0
gateway: 192.168.20.1
dns: 192.168.55.100
ntp: ntp-tx-as-1.localnet.local, ntp-ct-as-1.localnet.local
opsman_network: VLAN-XXXX
git_private_key:
opsman_disk_type: thin # use thick or thin disk provisioning
fly -t lab login -c http://c001.cglab.localnet.local:8080
$ fly -t lab set-pipeline --pipeline upgrade-opsman --config /home/concourse/pcf-pipelines/upgrade-ops-manager/vsphere/pipeline.yml --load-vars-from /home/concourse/pcf-pipelines/upgrade-ops-manager/vsphere/params.yml
resources:
resource pcf-pipelines has been added:
+ name: pcf-pipelines
+ type: git
+ source:
+ branch: master
+ uri: [email protected]:pivotal-cf/pcf-pipelines.git
resource pivnet-opsmgr has been added:
+ name: pivnet-opsmgr
+ type: pivnet
+ source:
+ api_token: CHANGEME
+ product_slug: ops-manager
+ product_version: ^2\.0\.[0-9]+$
+ sort_by: semver
resource schedule has been added:
+ name: schedule
+ type: time
+ source:
+ days:
+ - Sunday
+ - Monday
+ - Tuesday
+ - Wednesday
+ - Thursday
+ - Friday
+ - Saturday
+ interval: 30m
+ location: America/Los_Angeles
+ start: 12:00 AM
+ stop: 11:59 PM
resource types:
resource type pivnet has been added:
+ name: pivnet
+ type: docker-image
+ source:
+ repository: pivotalcf/pivnet-resource
+ tag: latest-final
jobs:
job regulator has been added:
+ name: regulator
+ plan:
+ - get: schedule
+ trigger: true
+ - get: pivnet-opsmgr
+ params:
+ globs: []
job upgrade-opsmgr has been added:
+ name: upgrade-opsmgr
+ plan:
+ - aggregate:
+ - get: pivnet-opsmgr
+ passed:
+ - regulator
+ trigger: true
+ params:
+ globs:
+ - '*.ova'
+ - get: pcf-pipelines
+ - task: wait-opsman-clear
+ file: pcf-pipelines/tasks/wait-opsman-clear/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXXXX
+ OPSMAN_PASSWORD: ""
+ OPSMAN_USERNAME: ""
+ - aggregate:
+ - task: export-opsmgr-settings
+ file: pcf-pipelines/tasks/export-opsmgr-settings/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXX
+ OPSMAN_PASSWORD: ""
+ OPSMAN_SETTINGS_FILENAME: installation.zip
+ OPSMAN_USERNAME: ""
+ - task: exported-opsmgr-diagnostic-report
+ file: pcf-pipelines/tasks/export-opsmgr-diagnostic-report/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXXX
+ OPSMAN_PASSWORD: ""
+ OPSMAN_USERNAME: ""
+ - task: deploy-opsman-vm
+ file: pcf-pipelines/tasks/deploy-opsman-vm/task.yml
+ params:
+ DNS: 192.168.55.100
+ GATEWAY: 192.168.20.1
+ GOVC_CA_CERT: ""
+ GOVC_CLUSTER: Zone01
+ GOVC_DATACENTER: CGLAB
+ GOVC_DATASTORE: 00-SIO-PCF1_Persistent_01
+ GOVC_INSECURE: "true"
+ GOVC_PASSWORD: XXXXXXXXXXXXXX
+ GOVC_RESOURCE_POOL: LABWORKS-CG
+ GOVC_URL: http://vcenter01.cglab.localnet.local
+ GOVC_USERNAME: [email protected]
+ NETMASK: 255.255.255.0
+ NTP: ntp-tx-as-1.localnet.local, ntp-ct-as-1.localnet.local
+ OPSMAN_DISK_TYPE: thin
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXXXXXXX
+ OPSMAN_IP: 192.168.20.10
+ OPSMAN_NETWORK: VLAN-XXXXX
+ OPSMAN_SSH_PASSWORD: XXXXXXXX
+ OPSMAN_TIMEOUT: "3600"
+ OPSMAN_VM_FOLDER: LABWORKS_vms
+ - task: import-opsmgr
+ file: pcf-pipelines/tasks/import-opsmgr-settings/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXXXXX
+ OPSMAN_PASSPHRASE: XXXXXXXXXXXXXX
+ OPSMAN_PASSWORD: ""
+ OPSMAN_SETTINGS_FILENAME: installation.zip
+ OPSMAN_USERNAME: ""
+ - task: download-stemcells
+ file: pcf-pipelines/tasks/download-pivnet-stemcells/task.yml
+ params:
+ API_TOKEN: CHANGEME
+ IAAS_TYPE: vsphere
+ - task: restore-stemcells
+ file: pcf-pipelines/tasks/restore-stemcells/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: CHANGEME
+ OPSMAN_PASSWORD: ""
+ OPSMAN_USERNAME: ""
+ - task: apply-changes
+ file: pcf-pipelines/tasks/apply-changes/task.yml
+ params:
+ OPSMAN_CLIENT_ID: ""
+ OPSMAN_CLIENT_SECRET: ""
+ OPSMAN_DOMAIN_OR_IP_ADDRESS: XXXXXXXXXX
+ OPSMAN_PASSWORD: ""
+ OPSMAN_USERNAME: ""
apply configuration? [yN]: y
pipeline created!
you can view your pipeline here: http://jump001.cglab.localnet.local:8080/teams/main/pipelines/upgrade-opsman
local: ~> fly -t lab unpause-pipeline -p upgrade-opsman
unpaused 'upgrade-opsman'
local: ~>
stderr:
Cloning into '/tmp/git-resource-repo-cache'...
ssh: Could not resolve hostname github.com: Try again
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Is there any log verbosity level I can increase or if anyone point me to a right direction?