IaaS Integration for Multi-Machine Services - vCloud Automation ...
vCloud Automation Center UnLeashed - NLVMUG · 2017. 2. 1. · vCloud Automation Center 3rd Party...
Transcript of vCloud Automation Center UnLeashed - NLVMUG · 2017. 2. 1. · vCloud Automation Center 3rd Party...
vCloud Automation Center UnLeashed
Arnim van Lieshout, Sr.Consultant @ VMware
Viktor van den Berg, Sr.Consultant @ PQR
2
Dames en heren…
Arnim van Lieshout
Senior Consultant @ VMware PSO
VCP, VCAP-DCA, VCAP-DCD
Blogger @ www.van-lieshout.com
@avlieshout
Viktor van den Berg
Senior Consultant @ PQR
VCDX #121, VCAP-CID, vExpert
Member of the VMUGNL steering committee
Blogger @ www.viktorious.nl
@viktoriousss
3
Agenda
Agenda
De weg naar de cloud
Wat is vCloud Automation Center?
vCAC Case
• Aanmaken van een VM blueprint
• Aanmaken van een multi-machine blueprint
• vCAC Extensibility
vCAC Advanced Service Designer
Vragen
4
Agenda
Agenda
NOG INVULLEN
5
Wat is vCloud Automation Center?
vCAC biedt:
Multi Tenant Self Service Portal
Centrale IT Service Catalogus
Anything as a Service
• Virtuele Machines / IaaS
• Applicaties
• Overige objecten
Geautomatiseerd aanvraag/goedkeur proces
Logische resource verdeling
Multivendor Orchestration
Inzicht in wie wat gebruikt
Uitgebreide extensibility opties
6
vCAC Servers
IaaS Server vCAC
Appliance Identity
Appliance
Application
Director
Identity Appliance
SUSE
SSO
Koppelingen met
AD/LDAP
vCAC Appliance
SUSE
Centraal portaal
Koppeling met
andere
componenten
Embedded vCO
IaaS Appliance
Windows
F.k.a. vCAC 4.x/5.x
Koppeling met
vSphere, vCloud,
Amazon e.d.
Application Director
Application
deployment
vCO
7
XaaS – Anything as a Service
VMware vSphere
tenant 1
silver
VMware vCloud Director
tenant 2
vCloud Automation Center (vCAC Appliance)
Infrastructure As A Service (IaaS Server) vCO
HTTP
Rest
Powershel
l
SOAP
vCenter
8
vCAC Self-Service Portal
© 2010 VMware Inc. All rights reserved
vCAC Case
10
Maak kennis met Mt.Xog
Mt.Xog is een vooraanstaand platform voor de handel in Bitcoins. De
infrastructuur van Mt.Xog draait op VMware vSphere en bestaat uit een
ontwikkel/test/acceptatie + een productie omgeving.
Door het recente succes van Bitcoins groeit Mt.Xog als kool. De groei
resulteert in de extra uitrol van virtuele machines, voor de productie
omgeving maar ook voor de OTA omgeving.
Het huidige aanvraagproces voor virtuele machines neemt 4-5 dagen in
beslag. Dit komt doordat meerdere personen & processen betrokken zijn bij
deze uitrol. Zo worden aanvragen in verschillende systemen afgehandeld en
zijn er de nodige handmatige acties noodzakelijk.
Mt.Xog wil graag met vCAC aan de slag om het deployment proces te
stroomlijnen.
11
Eisen vanuit Mt.XOG
Eisen:
Automatiseer het huidige aanvraag/goedkeur/uitrol proces voor het standaard WinServer en ThreeTier template.
• Het aanvragen van een VM mag maximaal vier uur duren.
• Afhankelijk van de gevraagde resources is goedkeuring van de aanvraag noodzakelijk.
De uitrol moet integreren met bestaande CMDB en IPAM systemen.
De uitrol moet voldoen aan de huidige naamgevingsconventie.
Nice to have:
Mt.Xog heeft goede verhalen gehoord over vCAC en wil de oplossing wellicht breder in gaan zetten. Een demo van aanvullende mogelijkheden is gewenst.
© 2010 VMware Inc. All rights reserved
Automatiseer de aanvraag
13
Beschikbare templates
Three Tier Application
App
CentOS
DB
CentOS
Windows 2008
1-2 vCPUs (goedkeurig vanaf 2 vCPUs)
2-8 GB RAM (goedkeurig vanaf 4 GB)
C:\ - 40 GB
3x CentOS
Configuratie ligt vast
1 intern netwerk
1 extern netwerk
Windows
2008
WFE
CentOS
14
Blueprint bouwen
Template
•vSphere template
•Customization Specification
Blueprint
•Maak de blueprint (kies type)
•Create/Clone
•Koppel vSphere template
•Koppel een build profile
Publiceer
•Publiceer de blueprint
Approval
•Pre Approval
•Post Approval
Catalog
•Blueprint toevoegen
•Approval policy koppelen
•Koppel akties
15
Aanmaken blueprint
Demo 1: Toevoegen Windows 2008 Blueprint aan de catalogus. Vraag
daarna deze nieuwe VM aan en bekijk hoe deze wordt uitgerold.
Windows 2008
1-2 vCPUs
2-8 GB RAM
C:\ - 40 GB
16
Catalog Management
Action Catalog
Item
Catalog
Item
Catalog
Item
Action
Action
Entitlement
Service Approval
Policy
Approval
Policy
Approval
Policy
17
Aanmaken blueprint
Demo 2: Toevoegen goedkeuringsproces
Windows 2008
1-2 vCPUs (goedkeurig vanaf 2 vCPUs)
2-8 GB RAM (goedkeurig vanaf 4 GB)
C:\ - 40 GB
18
Aanvraag/uitrol proces
Building
Machine
Machine
Provisioned On
Turning
On Requested Pre-Approval Post Approval
Requested – Aanvraag van de virtuele machine
Pre-Approval – Goedkeuring 1
Building machine – Workflow Stub
Machine provisioned – Workflow Stub
Turning On / On – Aanschakelen van de virtuele machine
Post-Approval – Goedkeuring 2
19
Aanmaken multi-machine blueprint
Demo 3: Maken multi-machine blueprint
Three Tier Application
App
CentOS
DB
CentOS
3x CentOS
Configuratie ligt vast
1 intern netwerk
1 extern netwerk
WFE
CentOS
Uitdagingen:
Meerdere virtuele machines
Verschillende netwerken:
• Private
• NAT
• Routed
Transport Zone
20
Aanvraag/uitrol proces
Building
Machine
Machine
Provisioned On
Turning
On Requested Pre-Approval Post Approval
Requested – Aanvraag van de virtuele machine
Pre-Approval – Goedkeuring 1
Building machine – Workflow Stub
Machine provisioned – Workflow Stub
Turning On / On – Aanschakelen van de virtuele machine
Post-Approval – Goedkeuring 2
© 2010 VMware Inc. All rights reserved
vCAC Extensibility
22
vCloud Automation Center
3rd Party
Integration
• CMDB
• DNS
• IPAM
• Load Balancers
• Service Desk
• Monitoring
Systems
• Databases
• Web Services vC
en
ter
Orc
he
str
ato
r IT
Pro
cess A
uto
ma
tion
30+ plugins, vele
standaard workflows
Backup/Restore
Extensibility: Integratie met 3rd party systemen
23
Building
Machine
Machine
Provisioned On
Turning
On Requested
Building
Registered
Machine
Provisioned On
Turning
On Requested
Unprovision
Machine
Machine
Disposing
Deactivate
Machine
Machine
Expired On
Machine Provisioning
Machine Registration
Machine Decommissioning
Machine Expiration
State Change Workflows
24
1. vCAC Designer 2. vCloud Automation Center Plugin
Invoke vCO Workflow in vCAC designer
vCO WF
Inputs
vCO WF
Outputs
25
Geactiveerd d.m.v. een custom property
Elke state change workflow is geassocieerd met een specifiek custom
property
vCAC controleert bij elke state of het bijbehorende custom property
aanwezig is en voert indien aanwezig de bijbehorende workflow uit.
Bijvoorbeeld: • ExternalWFStub.BuildingMachine
• ExternalWFStub.MachineProvisioned
• ExternalWFStub.MachineDisposing
Activeren Workflow Stubs in Blueprint
Activatie
WFStubs
26
Configureren vCAC Plug-in
27
vCO
Workflow
Reference
vCO
Workflow
Referentie
Activeren Workflow Stubs in Blueprint
Voordelen:
• Gemakkelijk te configuren
• Geen vCAC Designer nodig
• Per blueprint selectie van vCO workflows mogelijk
28
Custom Naamgeving
Extensibility Package
29
Huidige naamgeving: basename + ostype + function + inc. number
Integratie process: •Opvragen custom properties t.b.v. custom naamgeving
• vCAC Stub Workflow roept vCO workflow aan
• vCO workflow genereert de nieuwe custom naam
• vCO workflow update de vCAC entity met de nieuwe gegenereerde naam
Stub • BuildingMachine
Custom Naamgeving Design
30
vCAC vCO Plugin vCO workflow Custom Naming
Invoke vCO Master Workflow
Invoke Integration Workflow
DNS
Update VMDNSName
Invoke vCO Wrapper
Update VirtualMachineName
GetSequenceNumber
NsLookup
Get VM Properties
Custom Naamgeving Design
31
Custom Naamgeving Implementatie
32
IPAM Integratie
Extensibility Package
33
IP adressen worden uitgegeven door Infoblox appliance
Integratie process: •Opvragen netwerkproperties t.b.v. IP adres aanvraag
• vCAC Stub Workflow roept vCO workflow aan
• vCO workflow vraagt IP adres aan
• vCO workflow update de Netwerk properties van de VM
Stub • BuildingMachine
IPAM Integratie Design
34
IPAM Integratie Design
35
IPAM Integratie Implementatie
36
CMDB Integratie
Extensibility Package
37
Na het aanmaken van een VM moet de CMDB automatisch worden geupdate met relevante VM informatie
Integratie process: • vCAC Stub Workflow roept vCO workflow aan
• vCO workflow verzamelt relevante VM informatie
• vCO workflow update de CMDB
Stub • MachineProvisioned
CMDB Integratie Design
38
CMDB Integratie Implementatie
39
Resultaat
40
vSphere clone met stubs/integratie voorbeeld
VMware Clone Workflow
Maste
r W
ork
flo
w
Approved
Building
Machine
Machine
Provisioned
Machine
Activated
Turning On
On
Clone
Machine
Customize
Machine
Initial Power
On Customize
OS
Build
Finished
WFStubBuildingMachine
WFStub
Building
Machine Invoke vCO
WFStubMachineProvisioned
WFStub
Machine
Provisioned
Invoke vCO
Requested
Awaiting
Approval
Custom
Naming Get
IP Address
Update
CMDB
41
Catalogus Aanvraag Formulier
DropdownList
gedefinieerd in
Property
Dictionary
42
Catalogus Aanvraag Formulier
43
Provisioning Proces
44
Provisioning Proces
Custom
Naamgeving
IPAM
Integratie
45
Provisioning Proces CMDB
Integratie
46
Decommissioning Proces
47
Decommissioning Proces
IPAM
Integratie
CMDB
Integratie
© 2010 VMware Inc. All rights reserved
Advanced Service Designer
49
Wat is de Advanced Service Designer?
Advanced Service Designer:
Biedt maatwerk services o.b.v. vCO aan vanuit de vCAC portal
• vSphere Cluster
• Datastore
• AD User
Koppelt (maatwerk) akties aan deze objecten.
ASD objecten worden beschikbaar gemaakt via de catalogus. • Eventueel met approval
50
Advanced Service Designer - Architectuur
51
Walkthrough: Advanced Service Designer
Walkthrough: Advanced Service Designer
© 2010 VMware Inc. All rights reserved
Tenslotte
53
Samenvattend
Samenvatting
Wat is vCloud Automation Center en waar gebruik je het voor
Use case:
• Toevoegen blueprint
• Toevoegen multi-machine blueprint
vCAC Extensibility
• IPAM
• CMDB
• Custom Naamgeving
vCAC Advanced Service Designer
54
Questions?
Arnim van Lieshout – [email protected] / @avlieshout / www.van-lieshout.com
Viktor van den Berg – [email protected] / @viktoriousss / www.viktorious.nl