You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into this issue myself. I installed the puppetdb-termini before running puppet apply, which got rid of the "cannot load such file" error, and then I put conditionals around queries that might get called during the bootstrap process, e.g.,
Not sure if that's the best thing to check, but it gets the job done. It would be awesome of this module automatically short-circuited (rather than failed) when puppet is not configured to use puppetdb.
I was able to workaround this issue by adding a fact that mimcs this module checks:
Facter.add('puppetdb_running')dosetcodedobeginrequire'puppet/util/puppetdb'# This is needed if the puppetdb library isn't pluginsynced to the master
$LOAD_PATH.unshiftFile.expand_path(File.join(File.dirname(__FILE__),'..','..','..'))beginrequire'puppetdb/connection'ensure
$LOAD_PATH.shiftendPuppetDB::Connection.check_versiontruerescue=>e# puts e.message# puts e.backtracefalseendendend
When bootstrapping a completely new puppet system, we get an error from this module:
Error: Could not run: cannot load such file -- puppet/util/puppetdb
This is because at that moment nothing is configured/installed (also no puppetdb server).
We are trying to do the initial configuration for the puppet master by using puppet apply.
Is there any possibility to do a check for this case?
I'm not sure I'm making any sense, so please tell me if it's not clear what my problem is.
The text was updated successfully, but these errors were encountered: