Ask Your Question

Assigning dynamic values to each node in puppet

asked 2014-05-07 07:26:37 -0500

Phani gravatar image

updated 2014-05-07 07:39:21 -0500

How to dynamically assign variable to each node. If I had a 30 nodes and I had a file which is managed by puppet and I need to assign different values for each nodes from a array of values. How to do it other than making it static.

For Example: If I had a array [ 1,2,3,4 ] then node 1 with variable "x" should be 1 and node 2 with "x" variable should assign a value 2.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-07 07:51:55 -0500

doc75 gravatar image

You should have a look at:

These are the 2 alternatives I know to have different parameters for different machines.

Hope this helps.

edit flag offensive delete link more

answered 2014-05-07 12:51:27 -0500

lavaman gravatar image

It's generally much better to state your actual, specific issue rather than try to generalize it to some abstract version of what you think you should be doing. You could be going down the complete wrong path depending on what it is exactly you are attempting to actually do.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2014-05-07 07:26:37 -0500

Seen: 180 times

Last updated: May 07 '14