Coder Social home page Coder Social logo

Comments (11)

fgrehm avatar fgrehm commented on June 19, 2024

I haven't had the chance to look into this yet but looks like it might be related to #59

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

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?

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

Oh, and regarding the issue you had when declaring bundler yourself:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Rbenvgem[puppetuser/1.9.3-p374/bundler/present] is already declared in file /etc/puppet/modules/rbenv/manifests/gem.pp at line 28; cannot redeclare at /etc/puppet/modules/rbenv/manifests/gem.pp:28 on node puppet
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

The problem is that this module automatically declares the same rbenv::gem resource for you when compiling rubies and puppet complains about the duplicate declaration, it doesn't necessarily mean that the gem was installed ;-)

from puppet-rbenv.

keynmol avatar keynmol commented on June 19, 2024

I am using puppet forge version. That duplicating issue I've already figured out, looked into sources. I believe then there's something wrong with puppet forge version?

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

In that case probably yes, need to check with @alup when was the last
version released.

FΓ‘bio Rehm
Sent from my phone
On Feb 16, 2013 4:21 PM, "velvetbaldmime" [email protected] wrote:

I am using puppet forge version. That duplicating issue I've already
figured out, looked into sources. I believe then there's something wrong
with puppet forge version?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/60#issuecomment-13663877.

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

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

from puppet-rbenv.

keynmol avatar keynmol commented on June 19, 2024

No luck yet.

My manifest:

node 'puppet' {
    rbenv::install{"puppet":}
    rbenv::compile{"1.9.3-p374":
        user => "puppet",
        global=>true,
        require => Rbenv::Install["puppet"]
    }
}

Running it on a clean installed VM with ubuntu server 12.10:

puppet@puppet:~$ sudo puppet agent -t --server=master
info: Caching catalog for puppet
info: Applying configuration version '1361698911'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[build-essential]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[libxslt1-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[git]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[libssl-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[libyaml-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[autoconf]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[bison]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Rbenv::Dependencies::Ubuntu/Package[libreadline6-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Node[puppet]/Rbenv::Install[puppet]/Exec[rbenv::checkout puppet]/returns: executed successfully
notice: /Stage[main]//Node[puppet]/Rbenv::Install[puppet]/File[rbenv::cache-dir puppet]/ensure: created
notice: /Stage[main]//Node[puppet]/Rbenv::Install[puppet]/File[rbenv::rbenvrc puppet]/ensure: defined content as '{md5}d2817b1c5bf3b27742b1006d9770c25f'
notice: /Stage[main]//Node[puppet]/Rbenv::Install[puppet]/Exec[rbenv::shrc puppet]/returns: executed successfully
notice: /Stage[main]//Node[puppet]/Rbenv::Compile[1.9.3-p374]/Rbenv::Plugin::Rubybuild[rbenv::rubybuild::puppet]/Rbenv::Plugin[rbenv::plugin::rubybuild::puppet]/File[rbenv::plugins puppet]/ensure: created
notice: /Stage[main]//Node[puppet]/Rbenv::Compile[1.9.3-p374]/Rbenv::Plugin::Rubybuild[rbenv::rubybuild::puppet]/Rbenv::Plugin[rbenv::plugin::rubybuild::puppet]/Exec[rbenv::plugin::checkout puppet ruby-build]/returns: executed successfully
notice: /Stage[main]//Node[puppet]/Rbenv::Compile[1.9.3-p374]/Exec[rbenv::compile puppet 1.9.3-p374]/returns: executed successfully
notice: /Stage[main]//Node[puppet]/Rbenv::Compile[1.9.3-p374]/Exec[rbenv::rehash puppet 1.9.3-p374]/returns: executed successfully
notice: /Stage[main]//Node[puppet]/Rbenv::Compile[1.9.3-p374]/File[rbenv::global puppet]/ensure: defined content as '{md5}a5cbdc517333c90f4a2e7199f1786298'
notice: Finished catalog run in 516.41 seconds
puppet@puppet:~$ rbenv -v
rbenv 0.4.0-15-g0d1f1d0
puppet@puppet:~$ which gem
/home/puppet/.rbenv/shims/gem
puppet@puppet:~$ rbenv version
1.9.3-p374 (set by /home/puppet/.rbenv/version)
puppet@puppet:~$ gem list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)
puppet@puppet:~$ bundle
The program 'bundle' can be found in the following packages:
 * bundler
 * ruby-bundler
Try: sudo apt-get install <selected package>
puppet@puppet:~$ 

As if puppet somehow ignores bundle resource :(

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

Just checking, have you got pluginsync enabled?

from puppet-rbenv.

keynmol avatar keynmol commented on June 19, 2024

Bloody hell. I should've read main page from top to bottom. Perhaps though this would better somewhere higher on page, or highlighted in red, or something like that.

Thanks.

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 19, 2024

Awesome!
In fact, that section is brand new to the README, it wasn't there when you reported the issue ;-)

from puppet-rbenv.

keynmol avatar keynmol commented on June 19, 2024

You made me feel much better, thank you :-)

from puppet-rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.