Project

General

Profile

« Previous | Next » 

Revision 8b9a9f38

Added by Ewoud Kohl van Wijngaarden about 4 years ago

Puppet lint fix

View differences:

manifests/config/entry.pp
# note the spaces at he end of the 'order' parameters,
# they make sure that '1_main ' is ordered before '1_main_*'
ensure_resource('concat::fragment', "puppet.conf_${section}", {
target => "${::puppet::dir}/puppet.conf",
target => "${puppet::dir}/puppet.conf",
content => "\n[${section}]",
order => "${sectionorder}_${section} ",
})
......
# otherwise it just appends it with the joiner to separate it from the previous value.
if (!defined(Concat::Fragment["puppet.conf_${section}_${key}"])){
concat::fragment{"puppet.conf_${section}_${key}":
target => "${::puppet::dir}/puppet.conf",
target => "${puppet::dir}/puppet.conf",
content => " ${key} = ${_value}",
order => "${sectionorder}_${section}_${key} ",
}
} else {
concat::fragment{"puppet.conf_${section}_${key}_${name}":
target => "${::puppet::dir}/puppet.conf",
target => "${puppet::dir}/puppet.conf",
content => "${joiner}${_value}",
order => "${sectionorder}_${section}_${key}_${name} ",
}

Also available in: Unified diff