Puppet Class: httpproxy::package::rpm

Defined in:
manifests/package/rpm.pp

Overview

package/rpm.pp (private class) Manages proxies for the rpm package manager /usr/lib/rpm/macros Any per-system configuration should be added to /etc/rpm/macros



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/package/rpm.pp', line 25

class httpproxy::package::rpm {

  $lines = [
    '# File managed by Puppet',
    '',
    '# The port and machine name of an HTTP proxy host',
    # "%_httpport ${httpproxy::http_proxy_port}",
    "%_httpproxy ${httpproxy::proxy_uri}",
    '',
  ]

  file { '/etc/rpm/macros.httpproxy':
    ensure  => $httpproxy::packagemanager::ensure,
    group   => 'root',
    owner   => 'root',
    mode    => '0644',
    content => join($lines, "\n"),
  }
}