Created
March 12, 2012 18:32
-
-
Save dougireton/2023820 to your computer and use it in GitHub Desktop.
Chef cookbook
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
# stop and delete the default site | |
iis_site 'Default Web Site' do | |
action [:stop, :delete] | |
end | |
# create and start a new site that maps to | |
# the physical location C:\inetpub\wwwroot\testfu | |
iis_site 'Testfu Site' do | |
protocol :http | |
port 80 | |
path "#{node['iis']['docroot']}/testfu" | |
action [:add,:start] | |
end | |
# do the same but map to testfu.opscode.com domain | |
iis_site 'Testfu Site' do | |
protocol :http | |
port 80 | |
path "#{node['iis']['docroot']}/testfu" | |
host_header "testfu.opscode.com" | |
action [:add,:start] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment