Ask Your Question
0

librarian-puppet install

asked 2013-06-21 21:21:30 -0500

BaltoStar gravatar image

updated 2013-06-21 21:22:52 -0500

Windows Server 2008 R2 Standard SP1

Puppet Agent for Windows v3.2.2

Ruby v1.9.3 ( installed separately )

from cmd prompt w/Puppet :

c:>gem install librarian-puppet

c:>cd myrepo

c:\myrepo>librarian-puppet init

c:\myrepo>librarian-puppet install

( myrepo is a local-clone of a GitHub repo with a valid Puppetfile )

"C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/siteruby/1.9.1/ruby gems/dependency.rb:247:in 'tospecs': Could not find librarian-puppet (>= 0) amongst [bigdecimal-1.1.0, deepmerge-1.0.0, io-console-0.3, json-1.5.5, minitar-0.5.4, minitest-2.5.1, rake-0 ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-21 22:20:32 -0500

BaltoStar gravatar image

updated 2013-07-25 16:21:17 -0500

I solved this by "gem uninstall librarian-puppet" and then "gem install librarian-puppet" run from the Puppet command prompt ( run as administrator ).

Apparently "gem install librarian-puppet" installs the gem to a Ruby dir different than that created by Puppet Agent for Windows install. Therefore, subsequent librarian-puppet commands can't find the executable.

I suppose this is a problem unique to Windows -- anyone know for sure ?

edit flag offensive delete link more

Comments

It's an artifact of how Puppet Enterprise is distributed. It ships with it's own Ruby install bundled up so any gems you want available in your Puppet command ...(more)

rodjek gravatar imagerodjek ( 2013-07-26 00:42:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-21 21:21:30 -0500

Seen: 1,631 times

Last updated: Jul 25 '13