Created
February 1, 2010 12:52
-
-
Save masterzen/291671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class file_filler { | |
define filled_file($content='') { | |
file { $name: } | |
case $content { | |
'': { File[$name] { content => "I was filled\n" } } | |
default: { File[$name] { content => $content } | |
} | |
} | |
filled_file { ["/tmp/a", "/tmp/b"]: } | |
} | |
class test { | |
include file_filler | |
} | |
include test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment