Skip to content

Commit

Permalink
Merge pull request Azure#2796 from gossion/cf-v244
Browse files Browse the repository at this point in the history
Upgrade cloud foundry template to use cf-release v244
  • Loading branch information
gatneil authored Dec 6, 2016
2 parents c2991b9 + 7cd10b7 commit ac553d8
Show file tree
Hide file tree
Showing 12 changed files with 2,913 additions and 918 deletions.
6 changes: 6 additions & 0 deletions bosh-setup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.3.0 (2016-11-22)

- Upgrade cf-release to v244 for template of multiple-vm-cf.yml, keep cf-release v238 as a stable version for single-vm-cf.yml.
- Use stubs to generate manifest for multiple-vm-cf.yml.
- Add a scripts to generate certifications and passwords for manifests.

# v2.2.0 (2016-11-09)

- Support AzureUSGovernment
Expand Down
104 changes: 69 additions & 35 deletions bosh-setup/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,32 +123,36 @@
"filesToDownloadAzure": [
"[uri(variables('baseUriAzureCloud'), 'scripts/setup_env.sh')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/setup_env.py')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/create_cert.sh')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/utils.sh')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/replace_certs.sh')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/deploy_bosh.sh')]",
"[uri(variables('baseUriAzureCloud'), 'scripts/deploy_cloudfoundry.sh')]",
"[uri(variables('baseUriAzureCloud'), 'manifests/bosh.yml')]",
"[uri(variables('baseUriAzureCloud'), 'manifests/single-vm-cf.yml')]",
"[uri(variables('baseUriAzureCloud'), 'manifests/multiple-vm-cf.yml')]",
"http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v6.14.1/cf-cli-installer_6.14.1_x86-64.deb"
"http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v6.14.1/cf-cli-installer_6.14.1_x86-64.deb",
"https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz",
"https://github.com/square/certstrap/archive/v1.0.1.tar.gz"
],
"filesToDownloadAzureCloud": "[variables('filesToDownloadAzure')]",
"filesToDownloadAzureUSGovernment": "[variables('filesToDownloadAzure')]",

"baseUriAzureChinaCloud": "https://cloudfoundry.blob.core.chinacloudapi.cn/bosh-setup/",
"templateVersion": "v2-2-0",
"templateVersion": "v2-3-0",
"baseUriAzureChinaCloudWithVersion": "[concat(variables('baseUriAzureChinaCloud'), variables('templateVersion'), '/')]",
"filesToDownloadAzureChinaCloud": [
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/setup_env.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/setup_env.py')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/create_cert.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/utils.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/replace_certs.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/deploy_bosh.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'scripts/deploy_cloudfoundry.sh')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'manifests/bosh.yml')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'manifests/single-vm-cf.yml')]",
"[uri(variables('baseUriAzureChinaCloudWithVersion'), 'manifests/multiple-vm-cf.yml')]",
"[uri(variables('baseUriAzureChinaCloud'), 'cf-cli/cf-cli-installer_6.14.1_x86-64.deb')]"
"[uri(variables('baseUriAzureChinaCloud'), 'cf-cli/cf-cli-installer_6.14.1_x86-64.deb')]",
"https://mirror.azure.cn/go/go1.7.3.linux-amd64.tar.gz",
"https://mirror.azure.cn/square/certstrap/v1.0.1/v1.0.1.tar.gz"
],

"filesToDownload": "[variables(concat('filesToDownload', parameters('environment')))]",
Expand All @@ -166,17 +170,27 @@
"boshReleaseSha1": "e4442afcc64123e11f2b33cc2be799a0b59207d0",
"boshAzureCPIReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-azure-cpi-release?v=19",
"boshAzureCPIReleaseSha1": "1fe2dff904d15cf270cf0b9ab4f93a9f0d8e9f8b",
"stemcellUrl": "https://bosh.io/d/stemcells/bosh-azure-hyperv-ubuntu-trusty-go_agent?v=3262.7",
"stemcellSha1": "829a87d8ce24613e934a706cf10d6f2017fea1da",
"boshInitUrl": "https://s3.amazonaws.com/bosh-init-artifacts/bosh-init-0.0.95-linux-amd64",
"cfReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cf-release?v=238",
"cfReleaseSha1": "fa6d35300f4fcd74a75fd8c7138f592acfcb32b0",
"diegoReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/diego-release?v=0.1476.0",
"diegoReleaseSha1": "4b66fde250472e47eb2a0151bb676fc1be840f47",
"gardenReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/garden-linux-release?v=0.338.0",
"gardenReleaseSha1": "432225d88edc9731be4453cb61eba33fa829ebdc",
"cflinuxfs2ReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cflinuxfs2-rootfs-release?v=1.16.0",
"cflinuxfs2ReleaseSha1": "acfa1c4aad1fa9ef4623bf189cbab788a53f678e"
"staticStemcellUrl": "https://bosh.io/d/stemcells/bosh-azure-hyperv-ubuntu-trusty-go_agent?v=3262.7",
"staticStemcellSha1": "829a87d8ce24613e934a706cf10d6f2017fea1da",
"staticCfReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cf-release?v=238",
"staticCfReleaseSha1": "fa6d35300f4fcd74a75fd8c7138f592acfcb32b0",
"staticDiegoReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/diego-release?v=0.1476.0",
"staticDiegoReleaseSha1": "4b66fde250472e47eb2a0151bb676fc1be840f47",
"staticGardenReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/garden-linux-release?v=0.338.0",
"staticGardenReleaseSha1": "432225d88edc9731be4453cb61eba33fa829ebdc",
"staticCflinuxfs2ReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cflinuxfs2-rootfs-release?v=1.16.0",
"staticCflinuxfs2ReleaseSha1": "acfa1c4aad1fa9ef4623bf189cbab788a53f678e",
"dynamicStemcellUrl": "https://bosh.io/d/stemcells/bosh-azure-hyperv-ubuntu-trusty-go_agent?v=3263.8",
"dynamicStemcellSha1": "4c7788b70be83ac816c9d962e35d6ba5c7d04a94",
"dynamicCfReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cf-release?v=244",
"dynamicCfReleaseSha1": "e1666f711ef806399caa87f2fd72c669324c151e",
"dynamicDiegoReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/diego-release?v=0.1487.0",
"dynamicDiegoReleaseSha1": "f173af7117baa34cff97cf4355f958ea536a45d0",
"dynamicGardenReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry-incubator/garden-linux-release?v=0.342.0",
"dynamicGardenReleaseSha1": "dbfd8e7e3560286b6d8c02ba9065a50289e8e0f3",
"dynamicCflinuxfs2ReleaseUrl": "https://bosh.io/d/github.com/cloudfoundry/cflinuxfs2-rootfs-release?v=1.34.0",
"dynamicCflinuxfs2ReleaseSha1": "b1e367e228f5400439d4031a63df2600a9e213c4"
},
"environmentAzureCloud": "[variables('environmentAzure')]",
"environmentAzureUSGovernment": "[variables('environmentAzure')]",
Expand All @@ -189,17 +203,27 @@
"boshReleaseSha1": "e4442afcc64123e11f2b33cc2be799a0b59207d0",
"boshAzureCPIReleaseUrl": "https://mirror.azure.cn/bosh/bosh-azure-cpi-release/bosh-azure-cpi-release-19.tgz",
"boshAzureCPIReleaseSha1": "1fe2dff904d15cf270cf0b9ab4f93a9f0d8e9f8b",
"stemcellUrl": "https://mirror.azure.cn/bosh/bosh-azure-stemcells/bosh-stemcell-3262.7-azure-hyperv-ubuntu-trusty-go_agent.tgz",
"stemcellSha1": "829a87d8ce24613e934a706cf10d6f2017fea1da",
"boshInitUrl": "https://mirror.azure.cn/bosh/bosh-init/bosh-init-0.0.95-linux-amd64",
"cfReleaseUrl": "https://mirror.azure.cn/bosh/cf/cf-release-238.tgz",
"cfReleaseSha1": "fa6d35300f4fcd74a75fd8c7138f592acfcb32b0",
"diegoReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1476.0/diego-0.1476.0.tgz",
"diegoReleaseSha1": "fd9db50053423cb15aa994b2a1e4d2c0aa89e695",
"gardenReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1476.0/garden-linux-0.338.0.tgz",
"gardenReleaseSha1": "432225d88edc9731be4453cb61eba33fa829ebdc",
"cflinuxfs2ReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1477.0/cflinuxfs2-rootfs-1.16.0.tgz",
"cflinuxfs2ReleaseSha1": "acfa1c4aad1fa9ef4623bf189cbab788a53f678e"
"staticStemcellUrl": "https://mirror.azure.cn/bosh/bosh-azure-stemcells/bosh-stemcell-3262.7-azure-hyperv-ubuntu-trusty-go_agent.tgz",
"staticStemcellSha1": "829a87d8ce24613e934a706cf10d6f2017fea1da",
"staticCfReleaseUrl": "https://mirror.azure.cn/bosh/cf/cf-release-238.tgz",
"staticCfReleaseSha1": "fa6d35300f4fcd74a75fd8c7138f592acfcb32b0",
"staticDiegoReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1476.0/diego-0.1476.0.tgz",
"staticDiegoReleaseSha1": "fd9db50053423cb15aa994b2a1e4d2c0aa89e695",
"staticGardenReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1476.0/garden-linux-0.338.0.tgz",
"staticGardenReleaseSha1": "432225d88edc9731be4453cb61eba33fa829ebdc",
"staticCflinuxfs2ReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1477.0/cflinuxfs2-rootfs-1.16.0.tgz",
"staticCflinuxfs2ReleaseSha1": "acfa1c4aad1fa9ef4623bf189cbab788a53f678e",
"dynamicStemcellUrl": "https://mirror.azure.cn/bosh/bosh-azure-stemcells/bosh-stemcell-3263.8-azure-hyperv-ubuntu-trusty-go_agent.tgz",
"dynamicStemcellSha1": "4c7788b70be83ac816c9d962e35d6ba5c7d04a94",
"dynamicCfReleaseUrl": "https://mirror.azure.cn/bosh/cf/cf-release-244.tgz",
"dynamicCfReleaseSha1": "e1666f711ef806399caa87f2fd72c669324c151e",
"dynamicDiegoReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1487.0/diego-0.1487.0.tgz",
"dynamicDiegoReleaseSha1": "3ba7b17c37cea3ea677643db7881c3d8c5ff58bc",
"dynamicGardenReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1487.0/garden-linux-0.342.0.tgz",
"dynamicGardenReleaseSha1": "dbfd8e7e3560286b6d8c02ba9065a50289e8e0f3",
"dynamicCflinuxfs2ReleaseUrl": "https://mirror.azure.cn/bosh/diego/v0.1487.0/cflinuxfs2-rootfs-1.34.0.tgz",
"dynamicCflinuxfs2ReleaseSha1": "b1e367e228f5400439d4031a63df2600a9e213c4"
},
"environment": "[variables(concat('environment', parameters('environment')))]",

Expand Down Expand Up @@ -498,16 +522,26 @@
"BOSH_RELEASE_SHA1": "[variables('environment').boshReleaseSha1]",
"BOSH_AZURE_CPI_RELEASE_URL": "[variables('environment').boshAzureCPIReleaseUrl]",
"BOSH_AZURE_CPI_RELEASE_SHA1": "[variables('environment').boshAzureCPIReleaseSha1]",
"STEMCELL_URL": "[variables('environment').stemcellUrl]",
"STEMCELL_SHA1": "[variables('environment').stemcellSha1]",
"CF_RELEASE_URL": "[variables('environment').cfReleaseUrl]",
"CF_RELEASE_SHA1": "[variables('environment').cfReleaseSha1]",
"DIEGO_RELEASE_URL": "[variables('environment').diegoReleaseUrl]",
"DIEGO_RELEASE_SHA1": "[variables('environment').diegoReleaseSha1]",
"GARDEN_RELEASE_URL": "[variables('environment').gardenReleaseUrl]",
"GARDEN_RELEASE_SHA1": "[variables('environment').gardenReleaseSha1]",
"CFLINUXFS2_RELEASE_URL": "[variables('environment').cflinuxfs2ReleaseUrl]",
"CFLINUXFS2_RELEASE_SHA1": "[variables('environment').cflinuxfs2ReleaseSha1]",
"STATIC_STEMCELL_URL": "[variables('environment').staticStemcellUrl]",
"STATIC_STEMCELL_SHA1": "[variables('environment').staticStemcellSha1]",
"STATIC_CF_RELEASE_URL": "[variables('environment').staticCfReleaseUrl]",
"STATIC_CF_RELEASE_SHA1": "[variables('environment').staticCfReleaseSha1]",
"STATIC_DIEGO_RELEASE_URL": "[variables('environment').staticDiegoReleaseUrl]",
"STATIC_DIEGO_RELEASE_SHA1": "[variables('environment').staticDiegoReleaseSha1]",
"STATIC_GARDEN_RELEASE_URL": "[variables('environment').staticGardenReleaseUrl]",
"STATIC_GARDEN_RELEASE_SHA1": "[variables('environment').staticGardenReleaseSha1]",
"STATIC_CFLINUXFS2_RELEASE_URL": "[variables('environment').staticCflinuxfs2ReleaseUrl]",
"STATIC_CFLINUXFS2_RELEASE_SHA1": "[variables('environment').staticCflinuxfs2ReleaseSha1]",
"DYNAMIC_STEMCELL_URL": "[variables('environment').dynamicStemcellUrl]",
"DYNAMIC_STEMCELL_SHA1": "[variables('environment').dynamicStemcellSha1]",
"DYNAMIC_CF_RELEASE_URL": "[variables('environment').dynamicCfReleaseUrl]",
"DYNAMIC_CF_RELEASE_SHA1": "[variables('environment').dynamicCfReleaseSha1]",
"DYNAMIC_DIEGO_RELEASE_URL": "[variables('environment').dynamicDiegoReleaseUrl]",
"DYNAMIC_DIEGO_RELEASE_SHA1": "[variables('environment').dynamicDiegoReleaseSha1]",
"DYNAMIC_GARDEN_RELEASE_URL": "[variables('environment').dynamicGardenReleaseUrl]",
"DYNAMIC_GARDEN_RELEASE_SHA1": "[variables('environment').dynamicGardenReleaseSha1]",
"DYNAMIC_CFLINUXFS2_RELEASE_URL": "[variables('environment').dynamicCflinuxfs2ReleaseUrl]",
"DYNAMIC_CFLINUXFS2_RELEASE_SHA1": "[variables('environment').dynamicCflinuxfs2ReleaseSha1]",
"BOSH_INIT_URL": "[variables('environment').boshInitUrl]",
"KEEP_UNREACHABLE_VMS": "[variables('keepUnreachableVMs')]",
"AUTO_DEPLOY_BOSH": "[parameters('autoDeployBosh')]",
Expand Down
4 changes: 2 additions & 2 deletions bosh-setup/manifests/bosh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ resource_pools:
- name: vms
network: private
stemcell:
url: REPLACE_WITH_STEMCELL_URL
sha1: REPLACE_WITH_STEMCELL_SHA1
url: REPLACE_WITH_DYNAMIC_STEMCELL_URL
sha1: REPLACE_WITH_DYNAMIC_STEMCELL_SHA1
cloud_properties:
instance_type: REPLACE_WITH_BOSH_VM_SIZE

Expand Down
Loading

0 comments on commit ac553d8

Please sign in to comment.