Comments (11)
I haven't had the chance to look into this yet but looks like it might be related to #59
from puppet-rbenv.
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.
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.
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.
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.
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.
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.
Just checking, have you got pluginsync
enabled?
from puppet-rbenv.
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.
Awesome!
In fact, that section is brand new to the README, it wasn't there when you reported the issue ;-)
from puppet-rbenv.
You made me feel much better, thank you :-)
from puppet-rbenv.
Related Issues (20)
- Tag released version HOT 1
- Global ruby version not set correctly after sourcing .rbenvrc HOT 1
- rbenv plugins always cause puppet changes HOT 1
- module install fails in 3.7 due to symlink under spec HOT 2
- Plugin Repo onlyif test is broken HOT 1
- Unable to install ruby from https
- puppet-rbenv should support proxy usage
- document rbenv::bundle and rbenv::client
- Travis
- Module maintenance HOT 4
- Make it possible to pass --keep HOT 3
- Patch for ruby 1.9.3-p392
- Vagrant Provisioning Problems HOT 4
- Rbenv::Compile and Rbenv::Gem run every time HOT 2
- LICENSE? HOT 1
- Release to forge HOT 1
- Install from forge not working
- Set gem version HOT 2
- Periodically update ruby-build when new rubies are released HOT 1
- rbenv rehash after rbenv::gem ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-rbenv.