Skip to content

Instantly share code, notes, and snippets.

@dougireton
Created March 12, 2012 18:32
Show Gist options
  • Save dougireton/2023820 to your computer and use it in GitHub Desktop.
Save dougireton/2023820 to your computer and use it in GitHub Desktop.
Chef cookbook
# 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