Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 257

Hiera Defined Types + MongoDB Module?

$
0
0
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/mongodb#class-mongodbserver There is a mongodb::db defined type, that normally would look like the following: mongodb::db { 'testdb': user => 'user1', password_hash => 'a15fbfca5e3a758be80ceaf42458bcd8', } So in Hiera, I thought it would look like the following: mongodb::db: chat_log: user: 'user1' password: 'plaintextmaybe' 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?

Viewing all articles
Browse latest Browse all 257

Trending Articles