mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 20:05:34 +08:00
11 lines
510 B
PowerShell
11 lines
510 B
PowerShell
# DSC MOF Compilation
|
|
# DSC Configuration() script that:
|
|
# Defines base configuration users, groups, settings
|
|
# Uses PS function to set package configuration (ensure=Present) for an array of packages
|
|
# Probes for the existence of a package (Apache or MySQL) and conditionally configures the workload. I.e., if Apache is installed, configure Apache settings
|
|
|
|
# Demo execution:
|
|
# Show the .ps1
|
|
# Run the .ps1 to generate a MOF
|
|
# Apply the MOF locally with Start-DSCConfiguration
|
|
# Show the newly configured state |