Puppet Class: httpproxy::gem
- Defined in:
- manifests/gem.pp
Overview
gem.pp (private class) Manages proxies for ruby gem utility
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'manifests/gem.pp', line 21
class httpproxy::gem {
$ensure = $httpproxy::gem ? {
true => $httpproxy::ensure,
default => $httpproxy::gem,
}
$lines = [
'# File managed by Puppet',
'',
"http_proxy: \"${httpproxy::proxy_uri}\"",
'',
]
file { '/etc/gemrc':
ensure => $httpproxy::gem::ensure,
owner => 'root',
group => 'root',
mode => '0644',
content => join($lines, "\n"),
}
}
|