From 4242a9541d7c3e63f96da6e0eaeb71733e4ebe12 Mon Sep 17 00:00:00 2001 From: "jhejda@wmpromus.com" Date: Thu, 23 May 2019 17:25:19 +0200 Subject: [PATCH] eyaml --- modules/iis_demo/manifests/uninstall_iis.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/iis_demo/manifests/uninstall_iis.pp b/modules/iis_demo/manifests/uninstall_iis.pp index bce4694..a488e26 100644 --- a/modules/iis_demo/manifests/uninstall_iis.pp +++ b/modules/iis_demo/manifests/uninstall_iis.pp @@ -7,9 +7,24 @@ ### class iis_demo::uninstall_iis ( + String $app_pool_name = 'TestAppPool', + String $iis_site_name = 'TestIisSite', + String $iis_webapp_name = 'TestWebSite', ) { + iis_application { "${iis_site_name}\\${iis_webapp_name}": + ensure => 'absent', + } + + iis_site { $iis_site_name: + ensure => 'absent', + } + + iis_application_pool { $app_pool_name: + ensure => 'absent', + } + dsc_windowsfeature { 'IIS': dsc_ensure => 'absent', dsc_name => 'Web-Server',