Hiera Defined Types + MongoDB Module?

I might be a bit confused about how Hiera works with defined types...

  classes:
- mongodb::service
- mongodb::client


So here's where I start getting confused. I haven't had issues with Apache, which is similar.

In the puppetlabs module for MongoDB: https://forge.puppet.com/puppetlabs/m...

There is a mongodb::db defined type, that normally would look like the following:

mongodb::db { 'testdb':
user          => 'user1',
}


So in Hiera, I thought it would look like the following:

  mongodb::db:
chat_log:
user: 'user1'


However-- the above doesn't work. I'm confused, because the $user and$password variables arein the mongodb::db class, so shouldn't they be getting picked up that I've called the mongodb::db?

edit retag close merge delete