Puppet: String Interpolation in puppet

0 votes

How do i concatenate strings while writing the .pp file? I tried this: 

$x = 'Good' + 
     'Morning'

This didn't work. Please help.

Aug 29 in Puppet by Ashritha
16 views

1 answer to this question.

0 votes

Try this for Keyword variable interpolation:

$value = "${one}${two}"

Although it might work without the curly braces, you should always use them.

answered Aug 29 by Sirajul
• 26,100 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Service already defines error in Puppet

Hey @Rohan, try this: class MyClass { ...READ MORE

answered Feb 9 in Puppet by Monish
41 views
0 votes
1 answer

What are profiles in Puppet?

Wrapper classes that use multiple component modules ...READ MORE

answered Feb 15 in Puppet by Sheela
25 views
0 votes
1 answer

Can I access environment variables with Facter in Puppet?

Hey @Ruth, not directly. However, Facter reads ...READ MORE

answered Feb 15 in Puppet by Krishti

edited Feb 15 264 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
152 views
0 votes
1 answer
0 votes
1 answer

What is PSON in puppet and how is it different from JSON?

PSON is a variant of JSON which ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 26,100 points
37 views
0 votes
1 answer

what are Resources in puppet?

Resources are the fundamental unit for modeling ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 26,100 points
21 views