# copy IIS files into inetpub folder
file { 'C:\\inetpub\\minimal\\' :
ensure => 'directory',
source => 'C:\\moveto\\ACME',
recurse => true,
}
#create application pool
iis_application_pool { 'ACME':
ensure => 'present',
state => 'started',
managed_pipeline_mode => 'Integrated',
managed_runtime_version => 'v4.0',
} ->
# create Default Website
iis_site { 'Default Web Site':
ensure => 'started',
#physicalpath => 'C:\\inetpub',
applicationpool => 'ACME',
} ->
#create IIS application
iis_application {'ACME':
ensure => present,
applicationname => 'ACME', # <-- Does not need to match the title
sitename => 'Default Web Site',
physicalpath => 'C:\\inetpub\\minimal',
} ->
#create IIS application and convert to application
iis_application{'/ACME/UI':
applicationpool => 'ACME',
ensure => 'present',
sitename => 'Default Web Site',
physicalpath => 'C:\\inetpub\\minimal\\UI'
}