Ask Your Question

hiera : hierarchy variables assignment

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

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

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

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


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 -0500 )edit

I suggest having a look at this video from PC'12 ( that describes how Hiera works. It might clear up some of the usage ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-06-26 15:50:31 -0500 )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 -0500 )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 -0500 )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 -0500 )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


Asked: 2013-06-25 17:21:33 -0500

Seen: 299 times

Last updated: Jun 26 '13