项目作者: Outek

项目描述 :
datum-dsc-for-vmware
高级语言: PowerShell
项目地址: git://github.com/Outek/datum-dsc-for-vmware.git
创建时间: 2019-10-19T07:58:48Z
项目社区:https://github.com/Outek/datum-dsc-for-vmware

开源协议:

下载


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

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

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

  1. # 1. Build some Test Hosts to generate configurations
  2. .\Tools\CreateHosts.ps1 -Context Lab -Nodes 10
  3. .\Tools\CreateHosts.ps1 -Context NonProd -Nodes 10
  4. .\Tools\CreateHosts.ps1 -Context Prod -Nodes 10
  5. # 2. Import all modules and Dependencies
  6. .\Build.ps1 -ResolveDependency
  7. # 3a. Build your mof Files from your Lab Environment
  8. .\Build.ps1 -Environment Lab
  9. # 3b. Build your mof for a specific Role
  10. .\Build.ps1 -RoleName Lab_EsxHosts
  11. # 3c. or build'em all!
  12. .\Build.ps1