diff options
author | Micah <micah@riseup.net> | 2015-01-27 14:21:59 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2015-01-27 14:21:59 +0000 |
commit | a508fed2ea4ed5b0bb7f7bc10ec76493376709c8 (patch) | |
tree | 90ac690a149503e9297bff7bad6f2f49710c6adb /vagrant | |
parent | 6f0a176f949fff329f2275e4e0ec707aa4f2bdf3 (diff) | |
parent | 0e872f337358bdab1c7c0d7ae904f19b810ea290 (diff) |
Merge branch '6676_vagrant_use_ssl_for_gems' into 'develop'
6676 vagrant use ssl for gems
https://leap.se/code/issues/6676
See merge request !29
Diffstat (limited to 'vagrant')
-rwxr-xr-x | vagrant/install-platform.pp | 8 |
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' ]: |