Ask Your Question
0

hiera : hierarchy variables assignment

asked 2013-06-25 17:21:33 -0600

BaltoStar gravatar image

In Hiera , where are the hierarchy variables assigned to ? In the node def ( in nodes.pp ) or in the node.yaml ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-26 09:39:41 -0600

GregLarkin gravatar image

Have a look at the Puppet documentation for creating hierarchies. The hierarchy variables are assigned from values discovered by facter running on the node in question.

edit flag offensive delete link more

Comments

Thanks Greg. So hierarchy variables are always set by facter ( core facts , custom facts , external facts ) ? Or is it possible to set them explicitly ? I may be misunderstanding how the ...(more)

BaltoStar gravatar imageBaltoStar ( 2013-06-26 14:24:37 -0600 )edit

I suggest having a look at this video from PC'12 (http://youtu.be/z9TK-gUNFHk?t=17m42s) that describes how Hiera works. It might clear up some of the usage ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-06-26 15:50:31 -0600 )edit

Ok I am watching video but ( unless I missed it ) Kelsey doesn't explain how to create facts.yaml -- it just somehow exists already when he passes it to the ...(more)

BaltoStar gravatar imageBaltoStar ( 2013-06-26 18:46:27 -0600 )edit

The link above starts at a point where the hiera hierarchy creation is described. You may need to rewind a bit if he's using something that hasn't been explained already.

GregLarkin gravatar imageGregLarkin ( 2013-06-27 18:34:40 -0600 )edit

Yeah I rewound & replayed quite a bit ... but afaict Kelsey doesn't explain how facts.yaml is generated in standalone "puppet apply" mode.

BaltoStar gravatar imageBaltoStar ( 2013-06-27 22:47:51 -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: 2013-06-25 17:21:33 -0600

Seen: 321 times

Last updated: Jun 26 '13