Updating iis module
This commit is contained in:
parent
3e54346ae5
commit
6da4cb8501
@ -13,4 +13,9 @@ class profile::iis {
|
|||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Delete the default website to prevent a port binding conflict.
|
||||||
|
iis_site {'Default Web Site':
|
||||||
|
ensure => absent,
|
||||||
|
require => Iis_feature['Web-WebServer'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,21 +6,24 @@ class profile::sample_website::windows (
|
|||||||
require ::profile::iis
|
require ::profile::iis
|
||||||
|
|
||||||
# configure iis
|
# configure iis
|
||||||
iis::manage_app_pool {'sample_website':
|
iis_application_pool { 'sample_website':
|
||||||
require => [
|
ensure => 'present',
|
||||||
Windowsfeature[$profile::iis::iis_features],
|
state => 'started',
|
||||||
],
|
managed_pipeline_mode => 'Integrated',
|
||||||
|
managed_runtime_version => 'v4.0',
|
||||||
}
|
}
|
||||||
|
|
||||||
iis::manage_site { $::fqdn:
|
iis_site { $::fqdn:
|
||||||
site_path => $doc_root,
|
ensure => 'started',
|
||||||
port => $webserver_port,
|
physicalpath => $doc_root,
|
||||||
ip_address => '*',
|
applicationpool => 'sample_website',
|
||||||
app_pool => 'sample_website',
|
bindings => [
|
||||||
require => [
|
{
|
||||||
Windowsfeature[$profile::iis::iis_features],
|
'bindinginformation' => '*:80:',
|
||||||
Iis::Manage_app_pool['sample_website']
|
'protocol' => 'http',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
require => File[$website_source_dir],
|
||||||
}
|
}
|
||||||
|
|
||||||
windows_firewall::exception { 'IIS':
|
windows_firewall::exception { 'IIS':
|
||||||
|
Loading…
Reference in New Issue
Block a user