
Order of those parameters is changed to follow Puppet Style Guide recommendation [0]. Moreover, it will allow to an user to find much faster a variable in a list of variables. [0]. https://docs.puppetlabs.com/guides/style_guide.html Change-Id: If49d32d7e0beef5dc5c19b085be48659d3882f5f
22 lines
484 B
Puppet
22 lines
484 B
Puppet
# Define: askbot::helper::template_file
|
|
#
|
|
# Define a setup_templates file, cloned from a template
|
|
# directory.
|
|
#
|
|
# Parameters:
|
|
# - $template_path: root directory of setup_templates.
|
|
# - $dest_dir: destination directory of target files.
|
|
#
|
|
define askbot::site::setup_template (
|
|
$dest_dir,
|
|
$template_path,
|
|
) {
|
|
file { "${dest_dir}/${name}":
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
source => "${template_path}/${name}",
|
|
}
|
|
}
|