Last active
August 29, 2015 14:06
-
-
Save ferventcoder/b1ea0add34b188c065a0 to your computer and use it in GitHub Desktop.
Locking down a folder for IIS
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
acl { "${chocolatey_server_location}": | |
purge => true, | |
inherit_parent_permissions => false, | |
permissions => [ | |
{ identity => 'Administrators', rights => ['full'] }, | |
{ identity => 'IIS_IUSRS', rights => ['read'] }, | |
{ identity => 'IUSR', rights => ['read'] }, | |
{ identity => "IIS APPPOOL\\${chocolatey_server_app_pool_name}", rights => ['read'] } | |
], | |
} -> | |
acl { "${chocolatey_server_location}/App_Data": | |
permissions => [ | |
{ identity => "IIS APPPOOL\\${chocolatey_server_app_pool_name}", rights => ['modify'] }, | |
{ identity => 'IIS_IUSRS', rights => ['modify'] } | |
], | |
} |
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
# add windows features | |
windowsfeature { 'Web-WebServer': | |
installmanagementtools => true, | |
#installsubfeatures => true, | |
} -> | |
windowsfeature { 'Web-Asp-Net45': | |
} -> | |
# remove default web site | |
iis::manage_site {'Default Web Site': | |
ensure => absent, | |
site_path => 'any', | |
app_pool => 'DefaultAppPool' | |
} -> | |
# application in iis | |
iis::manage_app_pool { "${chocolatey_server_app_pool_name}": | |
enable_32_bit => true, | |
managed_runtime_version => 'v4.0', | |
} -> | |
iis::manage_site {'chocolatey.server': | |
site_path => $chocolatey_server_location, | |
port => '80', | |
ip_address => '*', | |
app_pool => "${chocolatey_server_app_pool_name}", | |
} -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment