Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Install specific gem versions when installing Puppet. Fixes #2361
Browse files Browse the repository at this point in the history
  • Loading branch information
jtreminio committed Jul 1, 2016
1 parent f45f20d commit 1543dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archive/puphpet/shell/install-puppet.sh
Expand Up @@ -31,4 +31,6 @@ if [[ ! -f /.puphpet-stuff/install-puppet ]]; then
touch /.puphpet-stuff/install-puppet
fi

/opt/puppetlabs/puppet/bin/gem install deep_merge activesupport vine --no-ri --no-rdoc
/opt/puppetlabs/puppet/bin/gem install deep_merge -v 1.0.1 --no-ri --no-rdoc
/opt/puppetlabs/puppet/bin/gem install activesupport -v 4.2.6 --no-ri --no-rdoc
/opt/puppetlabs/puppet/bin/gem install vine -v 0.2 --no-ri --no-rdoc

5 comments on commit 1543dac

@H4R0
Copy link

@H4R0 H4R0 commented on 1543dac Jul 12, 2016

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"

@func0der
Copy link

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?

@stephaneerard
Copy link

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 for secure_path, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. Run:

export rvmsudo_secure_path=1

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:

export rvmsudo_secure_path=0

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.

@stephaneerard
Copy link

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

@stephaneerard
Copy link

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).

Please sign in to comment.