This commit is contained in:
jhejda@wmpromus.com 2019-05-23 16:38:12 +02:00
parent 3dac2c08be
commit ea7cffadd7
2 changed files with 10 additions and 10 deletions

View File

@ -69,6 +69,10 @@ class iis_demo::app (
# Create IIS sites #
############################################################################
file { $path:
ensure => directory,
}
if !defined(Iis_site[$iis_site_name]) {
iis_site { $iis_site_name:
ensure => 'started',
@ -111,10 +115,6 @@ class iis_demo::app (
# Create application #
############################################################################
file { $path:
ensure => directory,
}
file { "${path}\\Website":
ensure => directory,
}

View File

@ -14,12 +14,7 @@ class iis_demo::uninstall_iis (
dsc_ensure => 'absent',
dsc_name => 'Web-Server',
#require => Package['powershell'],
notify => Reboot['reboot_uninstall_iis'],
}
reboot { 'reboot_uninstall_iis':
when => refreshed,
timeout => 15,
notify => Reboot['dsc_reboot'],
}
file { 'C:\\inetpub':
@ -29,4 +24,9 @@ class iis_demo::uninstall_iis (
force => true,
}
reboot { 'dsc_reboot':
when => refreshed,
timeout => 15,
}
}