diff options
author | Micah Anderson <micah@riseup.net> | 2011-03-25 00:59:48 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-03-25 00:59:48 -0400 |
commit | 233229435f4dacc5c1f14e1756b0d5810448f00c (patch) | |
tree | 142bda5632e2f0084cb64f8f8c5ab130623e5870 /manifests/defines/line.pp | |
parent | ab9bc25704ac0c560cc8f11ae6ef67402cde3830 (diff) | |
parent | 46baf4a692932482cac32eff91d49de461411bac (diff) | |
download | puppet-common-233229435f4dacc5c1f14e1756b0d5810448f00c.tar.gz puppet-common-233229435f4dacc5c1f14e1756b0d5810448f00c.tar.bz2 |
Merge remote-tracking branch 'sarava/master'
Conflicts:
manifests/defines/line.pp
manifests/defines/module_dir.pp
manifests/defines/module_file.pp
manifests/init.pp
Diffstat (limited to 'manifests/defines/line.pp')
-rw-r--r-- | manifests/defines/line.pp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/defines/line.pp b/manifests/defines/line.pp index ccfa357..bbe0a54 100644 --- a/manifests/defines/line.pp +++ b/manifests/defines/line.pp @@ -14,11 +14,10 @@ # is a more stable solution with less maintenance headaches afterwards. # # Usage: -# line { -# description: -# file => "filename", -# line => "content", -# ensure => {absent,*present*} +# line { description: +# file => "filename", +# line => "content", +# ensure => {absent,*present*} # } # # Example: @@ -34,6 +33,10 @@ # notify => Service[munin-node], # require => Package[munin-node]; # } +# +# Code with fixes gathered at +# http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText +>>>>>>> sarava/master define line($file, $line, $ensure = 'present') { case $ensure { default : { err ( "unknown ensure value '${ensure}'" ) } @@ -50,5 +53,3 @@ define line($file, $line, $ensure = 'present') { } } } - - |