Ask Your Question
0

Why hiera ignores config on Windows 2008 ?

asked 2013-12-03 09:56:31 -0600

kaczmar gravatar image

Hi,

I am trying to use hiera with puppet on Windows 2008 R2 nodes. I have hiera.yaml file in C:\project\puppet_src with following contents:

    ---
:backends:
- yaml

:yaml:
  :datadir: C:\project\hieradata

:hierarchy:
  - '%{::clientcert}'
  - 'common'

I also have node defined in puppet which uses hiera to define the type so my site.pp contains only:

node default {
   hiera_include('project-node-type')
}

Then when I try to run puppet using command line with:

puppet apply -dv --modulepath=C:\project\puppet_src\modules --hiera_config=C:\project\puppet_src\hiera.yaml --show_diff C:\project\puppet_src_win\manifests\site_win.pp

I always get an error: "cannot find datafile ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-03 16:53:07 -0600

updated 2014-10-03 17:29:10 -0600

The yaml looks a little off. Try using hiera -d to determine what it is doing.

Also, what version of hiera?

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

1 follower

Stats

Asked: 2013-12-03 09:56:31 -0600

Seen: 314 times

Last updated: Oct 03 '14