This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install specific gem versions when installing Puppet. Fixes #2361
- Loading branch information
1543dac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for others having the same problem as me:
After this fix for "activesupport requires Ruby version >= 2.2.2"
I had another Problem "ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://your-dns-needs-immediate-attention.dev/..."
Solution:
My hostname was set to "awesome.dev"
The Ruby installer tries to download from https://your-dns-needs-immediate-attention.dev which conflicts with the hostname.
So u need to change the "hostname" in "config.yaml" to something not containing ".dev" i changed "awesome.dev" to "awesome"
And the Install works like a charm using "vagrant up"
1543dac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just update Ruby itself?
1543dac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, it seems I have same problem with json_pure :
vagrant@lol2:~$ rvmsudo gem install puppet
Warning: can not check
/etc/sudoers
forsecure_path
, falling back to call via/usr/bin/env
, this breaks rules from/etc/sudoers
. Run:to avoid the warning, put it in shell initialization file to make it persistent.
In case there is no
secure_path
in/etc/sudoers
. Run:to avoid the warning, put it in shell initialization file to make it persistent.
Fetching: facter-2.4.6.gem (100%)
Successfully installed facter-2.4.6
Fetching: json_pure-2.0.2.gem (100%)
ERROR: Error installing puppet:
json_pure requires Ruby version ~> 2.0.
I'm trying to install it in the middle of a vagrant provision, after it failing, I ssh'ed into the vagrant.
1543dac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re,
I have managed to get this working any-how : http://pastebin.com/KhtK3U1M
1543dac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AHem, must say that I got the problem on a home-built vagrant box, based on 15.10 Ubuntu.
I have basically copy/paste packer-templates repo, created own dir for 15.10 and managed to get it work.
I can see that some files are being fetched from master branch instead of being versionned (which means that any subsequent run might get a version diff).