puppet-mongodb icon indicating copy to clipboard operation
puppet-mongodb copied to clipboard

mongodb::globals::dbpath hiera lookup fails

Open whiphubley opened this issue 6 years ago • 0 comments

For this to work requires the following diff to globals.pp

+ $dbpath                = undef,

And then the following diff to params.pp

- $dbpath                = '/var/lib/mongodb'
+ $dbpath                = pick($mongodb::globals::dbpath, '/var/lib/mongodb')

You can then add the following to hiera to override the default

mongodb::globals::dbpath: '/var/lib/mongo'

Thanks

whiphubley avatar Oct 22 '19 20:10 whiphubley