Puppet Function: init_template

Defined in:
modules/wmflib/lib/puppet/parser/functions/init_template.rb
Function type:
Ruby 3.x API

Overview

init_template()Any

Returns:

  • (Any)


11
12
13
14
15
16
# File 'modules/wmflib/lib/puppet/parser/functions/init_template.rb', line 11

newfunction(:init_template, :type => :rvalue, :arity => 2) do |args|
  tpl_name, initsystem = args
  module_name = lookupvar('module_name')
  tpl_arg = "#{module_name}/initscripts/#{tpl_name}.#{initsystem}.erb"
  function_template([tpl_arg])
end