Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbenv::gem not installing the requested gem #59

Closed
phendryx opened this issue Feb 11, 2013 · 4 comments
Closed

rbenv::gem not installing the requested gem #59

phendryx opened this issue Feb 11, 2013 · 4 comments

Comments

@phendryx
Copy link

With the simple class below, I am trying to install rbenv, compile 1.9.3-p194 and install unicorn. When I run this, it will install rbenv and download/compile ruby, but it never installs the gem. I am running a clean version of Ubuntu 64 bit 12.04 Desktop (but plan on running against LTS server). I am only using it to setup a puppet catalog for a project I am working on.

class app
{

        rbenv::install { "railsuser":
          home  => '/home/railsuser',
        }

        rbenv::compile { "railsuser/1.9.3-p194":
          user => "railsuser",
          home => "/home/railsuser",
          ruby => "1.9.3-p194",
          global => true,
        }

        rbenv::gem { "unicorn":
          user => "railsuser",
          home => "/home/railsuser",
          ruby => "1.9.3-p194",
        }
}

Output:

info: Applying configuration version '1360541237'
debug: /Stage[main]/Rbenv/Rbenv::Compile[railsuser/1.9.3-p194]/Rbenv::Plugin::Rubybuild[rbenv::rubybuild::railsuser]/Rbenv::Plugin[rbenv::plugin::rubybuild::railsuser]/Exec[rbenv::plugin::checkout railsuser ruby-build]/require: requires File[rbenv::plugins railsuser]
debug: /Stage[main]/Rbenv/Rbenv::Compile[railsuser/1.9.3-p194]/Exec[rbenv::compile railsuser 1.9.3-p194]/require: requires Rbenv::Plugin[rbenv::plugin::rubybuild::railsuser]
debug: /Stage[main]/Rbenv/Rbenv::Compile[railsuser/1.9.3-p194]/Exec[rbenv::compile railsuser 1.9.3-p194]/before: requires Exec[rbenv::rehash railsuser 1.9.3-p194]
debug: /Stage[main]/Rbenv/Rbenv::Install[railsuser]/require: requires Class[Rbenv::Dependencies]
debug: /Stage[main]/Rbenv::Dependencies/require: requires Class[Rbenv::Dependencies::Ubuntu]
debug: /Stage[main]/Rbenv/Rbenv::Install[railsuser]/Exec[rbenv::checkout railsuser]/require: requires Package[git]
debug: /Stage[main]/Rbenv/Rbenv::Compile[railsuser/1.9.3-p194]/Rbenv::Plugin::Rubybuild[rbenv::rubybuild::railsuser]/Rbenv::Plugin[rbenv::plugin::rubybuild::railsuser]/File[rbenv::plugins railsuser]/require: requires Exec[rbenv::checkout railsuser]
debug: /Stage[main]/Rbenv/Rbenv::Gem[unicorn]/Rbenvgem[railsuser/1.9.3-p194/unicorn/present]/require: requires Exec[rbenv::compile railsuser 1.9.3-p194]
debug: /Stage[main]/Rbenv/Rbenv::Compile[railsuser/1.9.3-p194]/Rbenv::Gem[rbenv::bundler railsuser 1.9.3-p194]/Rbenvgem[railsuser/1.9.3-p194/bundler/present]/require: requires Exec[rbenv::compile railsuser 1.9.3-p194]
debug: /Stage[main]/Rbenv/Rbenv::Install[railsuser]/File[rbenv::rbenvrc railsuser]/require: requires Exec[rbenv::checkout railsuser]
debug: /Stage[main]/Rbenv/Rbenv::Install[railsuser]/Exec[rbenv::shrc railsuser]/require: requires File[rbenv::rbenvrc railsuser]
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a host
debug: /Schedule[hourly]: Skipping device resources because running on a host
debug: Prefetching apt resources for package
debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n''
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n''
debug: /Schedule[never]: Skipping device resources because running on a host
debug: /Schedule[weekly]: Skipping device resources because running on a host
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Exec[rbenv::shrc railsuser](provider=posix): Executing check 'grep -q rbenvrc /home/railsuser/.profile'
debug: Executing 'grep -q rbenvrc /home/railsuser/.profile'
debug: Exec[rbenv::rehash railsuser 1.9.3-p194](provider=posix): Executing check '[ -e '/home/railsuser/.rbenv/.rehash' ]'
debug: Executing '[ -e '/home/railsuser/.rbenv/.rehash' ]'
debug: Finishing transaction 70018828788080
debug: Storing state
debug: Stored state in 0.01 seconds
notice: Finished catalog run in 0.36 seconds
debug: Executing '/etc/puppet/etckeeper-commit-post'
debug: Value of 'preferred_serialization_format' (pson) is invalid for report, using default (yaml)
debug: report supports formats: b64_zlib_yaml raw yaml; using yaml

Gem list, as railsuser:


*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.5.4)
kgio (2.8.0)
minitest (2.5.1)
rack (1.5.2)
raindrops (0.10.0)
rake (0.9.2.2)
rdoc (3.9.4)

Any ideas on what might be happening?

@fgrehm
Copy link
Contributor

fgrehm commented Feb 16, 2013

I've tried to reproduce the issue with vagrant at https://github.com/fgrehm/puppet-rbenv-issues but wasn't able to reproduce it. Are you using the most recent code from this repo or are you installing from puppet forge?

@fgrehm
Copy link
Contributor

fgrehm commented Feb 17, 2013

hey @phendryx, @alup has just released a new version to the forge, would you be able to try it out again and post the results here?

@phendryx
Copy link
Author

Turns out I didn't have pluginsync = true on both my puppet master and client. When I enabled it for another puppet script, I gave this project another test and it worked as expected. Might wanna throw a comment in the docs or wiki about needing pluginsync enabled.

Thanks for checking back in with me.

@alup
Copy link
Owner

alup commented Feb 19, 2013

@phendryx thnx for reporting this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants