config_file: use File's built-in checking for content/source
This commit is contained in:
parent
f1428f324a
commit
39b980df25
1 changed files with 6 additions and 6 deletions
|
@ -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 } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue