Ask Your Question
0

Puppet Enterprise Group Variables - Array issue

asked 2015-03-23 08:58:37 -0600

ankur0101 gravatar image

Hi, I ma using Puppet Enterprise I have a group called sample in which I set variable names as ["John", "Anthony"].

When I try to access it in class file, it gets converted into string as JohnAnthony.

I want to perform foreach loop in class file, how do to that ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-24 07:44:43 -0600

WhatsARanjit gravatar image

Iterating through arrays within your manifest is only supported by the future parser. Take a look at this: https://docs.puppetlabs.com/puppet/la...

edit flag offensive delete link more
0

answered 2015-03-25 23:33:27 -0600

ankur0101 gravatar image

Yes, I already did, that gives an error something like it was not able to identify $value

edit flag offensive delete link more

Comments

Please share your code and the error messages.

WhatsARanjit gravatar imageWhatsARanjit ( 2015-03-26 09:50:46 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-23 08:58:37 -0600

Seen: 76 times

Last updated: Mar 25 '15