From 7e0240acce5a338e7cc2b55f1f8ba749634c5da4 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 30 Jan 2014 17:18:40 +0100 Subject: change gem source to use https instead of http (Feature #3827) --- files/gemrc | 3 +++ manifests/init.pp | 14 +++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 files/gemrc diff --git a/files/gemrc b/files/gemrc new file mode 100644 index 0000000..040f20b --- /dev/null +++ b/files/gemrc @@ -0,0 +1,3 @@ +--- +:sources: +- https://rubygems.org/ diff --git a/manifests/init.pp b/manifests/init.pp index 678bd54..036460d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,9 +7,9 @@ # Marcel Härry haerry+puppet(at)puzzle.ch # Simon Josi josi+puppet(at)puzzle.ch # -# This program is free software; you can redistribute -# it and/or modify it under the terms of the GNU -# General Public License version 3 as published by +# This program is free software; you can redistribute +# it and/or modify it under the terms of the GNU +# General Public License version 3 as published by # the Free Software Foundation. # @@ -17,4 +17,12 @@ class rubygems { package{'rubygems': ensure => installed, } + file { '/etc/gemrc': + source => [ 'puppet:///site_rubygems/gemrc', + 'puppet:///rubygems/gemrc' ], + mode => '0644', + owner => 'root', + group => 'root', + } + } -- cgit v1.2.3