Skip to content

Commit

Permalink
Merge pull request voxpupuli#124 from mpdude/patch-1
Browse files Browse the repository at this point in the history
Allow removal of config values
  • Loading branch information
globin committed Oct 7, 2015
2 parents ae0335e + 59d2438 commit 9fdce28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/config/setting.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@
$setting = $split_name[1]
}

if $value == undef {
$ensure = 'absent'
} else {
$ensure = 'present'
}

ini_setting { $name:
ensure => $ensure,
value => $value,
path => $file,
section => $section,
Expand Down

0 comments on commit 9fdce28

Please sign in to comment.