Created
October 13, 2014 08:56
-
-
Save tsubakimoto/4924cb6b329e9624146f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration DSCPullServer | |
{ | |
Import-DSCResource -ModuleName xPSDesiredStateConfiguration | |
Node localhost | |
{ | |
WindowsFeature DSCService | |
{ | |
Name = "DSC-Service" | |
Ensure = "Present" | |
} | |
WindowsFeature IIS | |
{ | |
Name = "Web-Server" | |
Ensure = "Present" | |
} | |
WindowsFeature IISSecurity | |
{ | |
Name = "Web-Security" | |
Ensure = "Present" | |
IncludeAllSubFeature = $true | |
} | |
WindowsFeature IISMgmt | |
{ | |
Name = "Web-Mgmt-Tools" | |
Ensure = "Present" | |
} | |
WindowsFeature ASPNET | |
{ | |
Name = "Web-Asp-Net45" | |
Ensure = "Present" | |
IncludeAllSubFeature = $true | |
} | |
xDSCWebService DSCPullServer | |
{ | |
EndpointName = "PSDSCPullServer" | |
Ensure = "Present" | |
IsComplianceServer = $false | |
CertificateThumbPrint = "AllowUnencryptedTraffic" | |
Port = 8080 | |
State = "Started" | |
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer" | |
ConfigurationPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration" | |
ModulePath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules" | |
DependsOn = "[WindowsFeature]DSCService" | |
} | |
xDSCWebService DSCComplianceServer | |
{ | |
EndpointName = "PSDSCComplianceServer" | |
Ensure = "Present" | |
IsComplianceServer = $true | |
CertificateThumbPrint = "AllowUnencryptedTraffic" | |
Port = 8081 | |
State = "Started" | |
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCComplianceServer" | |
DependsOn = ("[WindowsFeature]DSCService", "[xDSCWebService]DSCPullServer") | |
} | |
} | |
} | |
$outputPath = "C:\DSCPullServer" | |
DSCPullServer -OutputPath $outputPath | |
Start-DscConfiguration -Path $outputPath -Wait -Verbose |
Author
tsubakimoto
commented
Oct 13, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment