summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Price <chris@puppetlabs.com>2012-10-20 22:16:36 -0700
committerChris Price <chris@puppetlabs.com>2012-10-20 22:16:36 -0700
commite517148f4a2ab309aeb8413095791b021574b417 (patch)
treefcad74ef698333283af5f7740b0cfdb390da2395
parent845fa707be7132e753f291901dd7e4d4dc48c405 (diff)
downloadpuppet-inifile-e517148f4a2ab309aeb8413095791b021574b417.tar.gz
puppet-inifile-e517148f4a2ab309aeb8413095791b021574b417.tar.bz2
Add example for `ensure=absent`
-rw-r--r--tests/ini_setting.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ini_setting.pp b/tests/ini_setting.pp
index 6fd7686..5e2f169 100644
--- a/tests/ini_setting.pp
+++ b/tests/ini_setting.pp
@@ -15,3 +15,11 @@ ini_setting { "sample setting2":
ensure => present,
require => Ini_setting["sample setting"],
}
+
+ini_setting { "sample setting3":
+ path => '/tmp/foo.ini',
+ section => 'bar',
+ setting => 'bazsetting',
+ ensure => absent,
+ require => Ini_setting["sample setting2"],
+}