Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sunnyc7/8617486 to your computer and use it in GitHub Desktop.
Save sunnyc7/8617486 to your computer and use it in GitHub Desktop.
Configuration AspNet45WebServer {
WindowsFeature WebAspNet45 {
Name = 'Web-Asp-Net45'
Ensure = 'Present'
}
WindowsFeature WebWindowsAuth {
Name = 'Web-Windows-Auth'
Ensure = 'Present'
}
}
Configuration AspClassicWebServer {
param ($EnsureBasicAuth)
WindowsFeature WebAsp {
Name = 'Web-ASP'
Ensure = 'Present'
}
WindowsFeature WebBasicAuth {
Name = 'Web-Basic-Auth'
Ensure = $EnsureBasicAuth
}
}
Configuration CombinedWebServer {
Node localhost {
AspNet45WebServer aspnet45 {}
AspClassicWebServer classic {
EnsureBasicAuth = 'Present'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment