From 0e872f337358bdab1c7c0d7ae904f19b810ea290 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 27 Jan 2015 15:09:17 +0100 Subject: configure vagrantbox to use https for fetching gems (Feature #6676) Change-Id: I0c29e7e07c294e2b5480396bed9db1c3694127d7 --- vagrant/install-platform.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vagrant/install-platform.pp b/vagrant/install-platform.pp index 012a0eb0..30f0b1e6 100755 --- a/vagrant/install-platform.pp +++ b/vagrant/install-platform.pp @@ -1,16 +1,20 @@ class {'apt': } File['/etc/apt/preferences'] -> Exec['refresh_apt'] -> - Package <| ( title != 'lsb' ) |> + Package <| ( title != 'lsb' ) |> package { [ 'rsync', 'ruby-hiera-puppet', 'git', 'ruby1.9.1-dev', 'rake', 'jq' ]: ensure => installed } +file { '/etc/gemrc': + content => "---\n:sources:\n - https://rubygems.org/" +} + package { 'leap_cli': ensure => latest, provider => 'gem', - require => Package['ruby1.9.1-dev'] + require => [ Package['ruby1.9.1-dev'], File['/etc/gemrc'] ] } file { [ '/srv/leap', '/srv/leap/configuration', '/var/log/leap' ]: -- cgit v1.2.3