Quantcast
Viewing all articles
Browse latest Browse all 26

Answer by kaiser for Puppet concatenate templates

One possible solution is to fetch templates in variables. Then concatenate the string and push it into an inline_template():

$a = template( 'wppuppet/my-file.a.erb' )$b = template( 'wppuppet/my-file.b.erb' )$c = template( 'wppuppet/my-file.c.erb' )file { "${location}/final-file.php":    ensure  => file,    content => inline_template( "${a}${b}${c}" ),}

Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>