diff options
-rw-r--r-- | files/gemrc | 3 | ||||
-rw-r--r-- | manifests/init.pp | 14 |
2 files changed, 14 insertions, 3 deletions
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', + } + } |