summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-01-27 15:09:17 +0100
committervarac <varacanero@zeromail.org>2015-01-27 15:09:17 +0100
commit0e872f337358bdab1c7c0d7ae904f19b810ea290 (patch)
tree90ac690a149503e9297bff7bad6f2f49710c6adb
parent6f0a176f949fff329f2275e4e0ec707aa4f2bdf3 (diff)
configure vagrantbox to use https for fetching gems (Feature #6676)
Change-Id: I0c29e7e07c294e2b5480396bed9db1c3694127d7
-rwxr-xr-xvagrant/install-platform.pp8
1 files 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' ]: