Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (60 sloc) 1.38 KB
inputs:
vm_name:
type: string
minLength: 6
maxLength: 12
description: VM name prefix
title: VM name prexix
vm_size:
type: string
enum:
- ddeswart-small
- ddeswart-medium
- ddeswart-large
default: ddeswart-medium
description: Size of the VM
title: VM size
ip_assignment:
type: string
enum:
- static
- dynamic
default: dynamic
description: IP assignment type
title: IP assignment
pe_role:
type: string
enum:
- 'role::linux_base'
- 'role::linux_webserver'
- 'role::wordpress_server'
default: 'role::linux_base'
description: Puppet role
title: Puppet role
resources:
Cloud_Puppet_1:
type: Cloud.Puppet
properties:
host: '${Cloud_vSphere_Machine_1.*}'
role: '${input.pe_role}'
osType: linux
provider: ddeswart-PE-master
username: root
environment: dev
useSudo: false
password: <--ROOT PASSWORD-->
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
name: '${input.vm_name}'
image: ddeswart-CentOS
flavor: '${input.vm_size}'
networks:
- name: '${Cloud_vSphere_Network_1.name}'
assignment: '${input.ip_assignment}'
Cloud_vSphere_Network_1:
type: Cloud.vSphere.Network
properties:
name: CAS-VM-network
constraints:
- tag: 'ipam:true'