Outek / datum-dsc-for-vmware

datum-dsc-for-vmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datum-Dsc-for-VMware

This project is heavily borowed or 'inspired' from here:

DSC Workshop

Automated Lab

datum

DSC Infra sample

Datum

Datum is a PowerShell module used to aggregate DSC configuration data from multiple sources allowing you to define generic information (Roles) and specific overrides (i.e. per Node, Location, Environment) without repeating yourself.

A Sample repository of an Infrastructure, managed from code using Datum is available in the DscInfraSample project, along with more explanations of its usage and the recommended Control repository layout

VMWare.vSphere

Note

It is a small PoC to show the benefits with Datum and Infrastructure as Code.

Usage

You can build some Node Configurations with the script in Tools / CreateHosts.ps1

[10:12] [189.39ms] .\datum-dsc-for-vmware\Tools [origin/master]
PS> .\CreateHosts.ps1 -Context Lab -Nodes 10 -Role EsxHosts

Steps to build your Mof Files (after cloning this Repo)

# 1. Build some Test Hosts to generate configurations
 .\Tools\CreateHosts.ps1 -Context Lab -Nodes 10
 .\Tools\CreateHosts.ps1 -Context NonProd -Nodes 10
 .\Tools\CreateHosts.ps1 -Context Prod -Nodes 10

# 2. Import all modules and Dependencies
 .\Build.ps1 -ResolveDependency

# 3a. Build your mof Files from your Lab Environment
 .\Build.ps1 -Environment Lab

# 3b. Build your mof for a specific Role
 .\Build.ps1 -RoleName Lab_EsxHosts

# 3c. or build'em all!
 .\Build.ps1

About

datum-dsc-for-vmware


Languages

Language:PowerShell 100.0%