Skip to content

Instantly share code, notes, and snippets.

@anthonygrees
Last active May 13, 2019 02:55
Show Gist options
  • Save anthonygrees/e511828c2b7da2fa0988652ad803e01e to your computer and use it in GitHub Desktop.
Save anthonygrees/e511828c2b7da2fa0988652ad803e01e to your computer and use it in GitHub Desktop.
Kitchen vCentre and vRA
---
driver:
name: vcenter
vcenter_username: <%= ENV['VCENTER_USER'] || "[email protected]" %>
vcenter_password: <%= ENV['VCENTER_PASSWORD'] || "Good4bye!" %>
vcenter_host: "172.16.20.2"
vcenter_disable_ssl_verify: true
provisioner:
name: chef_zero
sudo_command: sudo
verifier:
name: inspec
platforms:
- name: ubuntu-1604
transport:
username: admini
password: admini
driver_config:
targethost: 172.16.20.41
template: template-ubuntu1604
datacenter: "Datacenter"
resource_pool: "testkitchen"
- name: centos-7
transport:
username: root
password: admini
driver_config:
targethost: 172.16.20.41
template: template-centos7
datacenter: "Datacenter"
resource_pool: "testkitchen"
suites:
- name: default
run_list:
- recipe[COOKBOOK::default]
---
driver:
name: vra
username: [email protected]
password:
tenant: vsphere.local
base_url: https://vra.yourcompany.com
verify_ssl: false
subtenant_name: business-group-1
cpus: 1
memory: 2048
private_key_path: ~/.ssh/vagrant.pem
extra_parameters:
My.Custom.Property4:
type: string
value: newvalue3
transport:
username: vagrant
provisioner:
name: chef_zero
verifier:
name: inspec
platforms:
- name: centos76
driver:
catalog_name: centos76
extra_parameters:
My.Custom.Property1:
type: string
value: overriddenvalue1
My.Custom.Property2:
type: string
value: overriddenvalue2
My.Custom.Property3:
type: string
value: newvalue3
APP_Server~Hostname:
type: string
value: vra-test
_deploymentName:
type: string
value: Testing Test-kitchen
Hostname:
type: string
value: test002
APP_Server~MaintenenceWindow:
type: string
value: 'SAT 12:00-13:00'
APP_Server~ServerDescription:
type: string
value: Testing Test Kitchen
APP_Server~SRM:
type: boolean
value: false
zzzimage:
type: string
value: ValueSet.WindowsServer2016
suites:
- name: default
run_list:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment