From 02aa5a09b00728e8d4009d96bce10dfc45931e27 Mon Sep 17 00:00:00 2001 From: "jhejda@wmpromus.com" Date: Fri, 24 May 2019 10:25:44 +0200 Subject: [PATCH] message --- modules/demo/manifests/uninstall_wintools.pp | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/demo/manifests/uninstall_wintools.pp diff --git a/modules/demo/manifests/uninstall_wintools.pp b/modules/demo/manifests/uninstall_wintools.pp new file mode 100644 index 0000000..901a792 --- /dev/null +++ b/modules/demo/manifests/uninstall_wintools.pp @@ -0,0 +1,22 @@ +class demo::uninstall_wintools ( + Boolean $uninstall_notepadplusplus = false, + Boolean $uninstall_baretail = false, + ) { + + include chocolatey + + if $uninstall_notepadplusplus { + package { 'baretail': + ensure => absent, + provider => chocolatey, + } + } + + if $uninstall_baretail { + package { 'notepadplusplus': + ensure => absent, + provider => chocolatey, + } + } + +}