-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
131 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ for kit in $@; do | |
;; | ||
vsphere-cpi) | ||
CPI=$kit | ||
CPI_INIT=vsphere-init | ||
;; | ||
vcloud-cpi) | ||
CPI=$kit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
params: | ||
vsphere_ephemeral_datastores: (( param "Enter your vSphere ephemeral datastore pattern" )) | ||
vsphere_persistent_datastores: (( param "Enter your vSphere persistent datastore pattern" )) | ||
vsphere_clusters: (( param "Enter your vSphere clusters" )) | ||
vsphere_datacenter: (( param "Enter your vSphere Datacenter Name" )) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
meta: | ||
vm_folder: (( concat params.env "/vms" )) | ||
template_folder: (( concat params.env "/templates" )) | ||
disk_path: (( concat params.env "/disks" )) | ||
|
||
joined_vsphere_ephemeral_datastores: (( join "|" params.vsphere_ephemeral_datastores )) | ||
vsphere_ephemeral_datastores: (( concat "^(" meta.joined_vsphere_ephemeral_datastores ")$" )) | ||
joined_vsphere_persistent_datastores: (( join "|" params.vsphere_persistent_datastores )) | ||
vsphere_persistent_datastores: (( concat "^(" meta.joined_vsphere_persistent_datastores ")$" )) | ||
|
||
instance_groups: | ||
- name: bosh | ||
jobs: | ||
- name: vsphere_cpi | ||
release: bosh-vsphere-cpi | ||
# In cloud config, define a disk_type using name: bosh | ||
persistent_disk_type: bosh | ||
# In cloud config, define a vm_type using name: small | ||
vm_type: small | ||
|
||
properties: | ||
vcenter: | ||
user: (( vault meta.vault "/vsphere:user" )) | ||
password: (( vault meta.vault "/vsphere:password" )) | ||
address: (( vault meta.vault "/vsphere:address" )) | ||
datacenters: | ||
- name: (( grab params.vsphere_datacenter )) | ||
vm_folder: (( grab meta.vm_folder )) | ||
template_folder: (( grab meta.template_folder )) | ||
disk_path: (( grab meta.disk_path )) | ||
datastore_pattern: (( grab meta.vsphere_ephemeral_datastores )) | ||
persistent_datastore_pattern: (( grab meta.vsphere_persistent_datastores )) | ||
clusters: (( grab params.vsphere_clusters )) | ||
|
||
director: | ||
cpi_job: vsphere_cpi | ||
|
||
releases: | ||
- name: bosh-vsphere-cpi | ||
version: 45 | ||
sha1: b5f3c53c800d6c8a9182b263ec239a952f33ba67 | ||
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=45 | ||
|
||
variables: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
resource_pools: | ||
- name: (( grab params.bosh_vm_type )) | ||
cloud_properties: | ||
cpu: (( grab params.vsphere_cpu )) | ||
ram: (( grab params.vsphere_ram )) | ||
disk: (( grab params.vsphere_disk )) | ||
stemcell: (( grab meta.latest_stemcells.bosh-vsphere-esxi-ubuntu-trusty-go_agent )) | ||
|
||
networks: | ||
- name: (( grab params.bosh_network )) | ||
subnets: | ||
- (( inline )) | ||
- cloud_properties: | ||
name: (( grab params.vsphere_network )) | ||
|
||
disk_pools: | ||
- name: (( grab params.bosh_disk_pool )) | ||
cloud_properties: | ||
type: (( grab params.vsphere_disk_type )) | ||
|
||
cloud_provider: | ||
template: | ||
name: vsphere_cpi | ||
release: bosh-vsphere-cpi | ||
|
||
properties: | ||
vcenter: (( grab instance_groups.bosh.properties.vcenter )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
params: | ||
vsphere_cpu: 2 | ||
vsphere_ram: 4096 | ||
vsphere_disk: 40960 | ||
|
||
vsphere_network: (( param "Enter the vSphere network name" )) | ||
vsphere_disk_type: (( param "Enthe the vSphere persistent disk type for disk pool" )) |