puppetdb terminus - different results using sudo

496 views
Skip to first unread message

machete

unread,
Dec 5, 2013, 1:51:05 PM12/5/13
to puppet...@googlegroups.com
using sudo:
 ~> sudo  puppet apply -e 'file { "/tmp/adhoc": content => "Written from puppet on $hostname\n" }'
Error: Cached facts for awsomepuppet failed: Could not find terminus puppetdb for indirection facts
Error: Could not run: Could not retrieve facts for  awsomepuppet: Could not find terminus puppetdb for indirection facts

other users:
~> puppet apply -e 'file { "/tmp/adhoc": content => "Written from puppet on $hostname\n" }'
Notice: Compiled catalog for awsomepuppet in environment production in 0.20 seconds
Notice: Finished catalog run in 0.18 seconds

~> ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
~> sudo ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

~> cat /tmp/puppetdbtest
Written from puppet on awsomepuppet


I am currently looking for a resolution to  the "Could not find terminus puppetdb for indirection facts" message. Any guidance?  Neither command is updating the puppetdb. 

machete

unread,
Dec 5, 2013, 2:11:07 PM12/5/13
to puppet...@googlegroups.com
Resolved:

Found this resolution. Thanks Scott Mcintyre 

---------------

Ran into the following error when setting up one of our new internal puppet servers with puppetdb.

Oct 13 11:40:34 puppet puppet-master[27735]: Could not configure routes from /etc/puppet/routes.yaml: Could not find terminus puppetdb for indirection facts

The solution is to build the gem yourself. Here is what I done,


1
2
3
4
5
git clone https://github.com/puppetlabs/puppetdb
cd puppetdb
cp contrib/gem/puppetdb-terminus.gemspec puppet/
cd puppet
gem build puppetdb-terminus.gemspec
gem install puppetdb-terminus-1.0.gem

And puppet master starts now.

Reply all
Reply to author
Forward
0 new messages