Skip to content

Instantly share code, notes, and snippets.

@burn2delete
Created April 30, 2015 20:57
Show Gist options
  • Save burn2delete/f23ff5433cc2c613b25c to your computer and use it in GitHub Desktop.
Save burn2delete/f23ff5433cc2c613b25c to your computer and use it in GitHub Desktop.
d9-MicroMgmt
Configuration d9micromgmt {
Import-DscResource -ModuleName xPSDesiredStateConfiguration
Node localhost {
WindowsFeature DSCServiceFeature {
Name = "DSC-Service"
Ensure = "Present"
}
xDSCWebService PSDSCPullServer {
Ensure = "Present"
EndPointName = "PSDSCPullServer"
Port = 9091
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer"
CertificateThumbPrint = "AllowUnencryptedTraffic"
ModulePath = "$env:ProgramFiles\WindowsPowerShell\DscService\Modules"
ConfigurationPath = "$env:ProgramFiles\WindowsPowerShell\DscService\Configuration"
State = "Started"
DependsOn = "[WindowsFeature]DSCServiceFeature"
}
xDSCWebService PSDSCComplianceServer {
Ensure = "Present"
EndpointName = "PSDSCComplianceServer"
Port = 9092
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCComplianceServer"
CertificateThumbPrint = "AllowUnencryptedTraffic"
State = "Started"
IsComplianceServer = $true
DependsOn = ("[WindowsFeature]DSCServiceFeature","[xDSCWebService]PSDSCPullServer")
}
}
}
d9micromgmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment