Skip to content

Commit

Permalink
configuration data added
Browse files Browse the repository at this point in the history
  • Loading branch information
DCAG committed Jun 11, 2017
1 parent a885e4d commit b8688a9
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DSC/Configuration/WebDAV/WebDAVConfiguration.ps1
Expand Up @@ -31,7 +31,7 @@ Configuration WebDAV
}
}

Script applicationHost
Script WebDAVInApplicationHost
{
GetScript = "@{}" <#{
$Results = @{
Expand All @@ -46,8 +46,7 @@ Configuration WebDAV
}

TestScript = {
$enabled = Get-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Location 'Default Web Site' -Filter 'system.webServer/webdav/authoring' -Name 'enabled' | Select-Object -ExpandProperty Value
$enabled -eq 'True'
Get-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Location 'Default Web Site' -Filter 'system.webServer/webdav/authoring' -Name 'enabled' | Select-Object -ExpandProperty Value -First 1 -Unique
}

DependsOn = '[WindowsFeature]IISRole','[WindowsFeature]Web-DAV-Publishing','[WindowsFeature]Web-Scripting-Tools'
Expand Down
66 changes: 66 additions & 0 deletions DSC/Configuration/WebDAV/WebDAVConfiguration.psd1
@@ -0,0 +1,66 @@
@{
AllNodes =
@(
@{
NodeName = 'VM-1'
Role = 'WebDAV'
WebApps = @(
@{
AppName = 'DAV01'
AppFolder = 'D:\WebDAVShare\DAV01'
WebDAVAuthoringRules = @(
@{
users =
roles =
path =
access =
},
@{
users =
roles =
path =
access =
}
) # WebDAVAuthoringRules <END>
},
@{
AppName = 'AppDAV02'
AppFolder = 'D:\WebDAVShare\DAV02'
WebDAVAuthoringRules = @(
@{
users =
roles =
path =
access =
}
) # WebDAVAuthoringRules <END>
}
) # WebApps <END>
},

@{
NodeName = 'VM-2'
Role = 'WebDAV'
WebApps = @(
@{
AppName = 'DAV01'
AppFolder = 'D:\WebDAVShare\DAV01'
WebDAVAuthoringRules = @(
@{
users =
roles =
path =
access =
},
@{
users =
roles =
path =
access =
}
) # WebDAVAuthoringRules <END>
}
) # WebApps <END>
}
) # AllNodes <END>
}

0 comments on commit b8688a9

Please sign in to comment.