Ask Your Question
1

hiera function in yaml

asked 2017-06-22 11:06:13 -0500

CBR gravatar image

My yaml looks something like below

---
database::db_user:
     'asuser':
          password:       'somepassword'

Now, can I do this in another yaml file ?

---
mymodule::db_pass:     "%{hiera('database::db_user')['asuser']}"
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-06-22 12:24:32 -0500

CBR gravatar image

answeing myself here.

This worked for me.

---
mymodule::db_pass:     "%{hiera('database::db_user.asuser')}"
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: 2017-06-22 11:06:13 -0500

Seen: 60 times

Last updated: Jun 22