config_file: use File's built-in checking for content/source

This commit is contained in:
David Schmitt 2008-02-29 16:49:59 +01:00
parent f1428f324a
commit 39b980df25

View file

@ -38,13 +38,13 @@ define config_file ($content = '', $source = '', $ensure = 'present') {
checksum => md5, checksum => md5,
} }
case $source {
'': { }
default: { File[$name] { source => $source } }
}
case $content { case $content {
'': { '': { }
case $source {
'': { }
default: { File[$name] { source => $source } }
}
}
default: { File[$name] { content => $content } } default: { File[$name] { content => $content } }
} }