Skip to content

Commit 0809e3e

Browse files
Merge pull request #95 from kronos-pbrideau/dev
Add http_proxy_host and http_proxy_port to agent in [agent] section
2 parents cd27a5a + e0f70d6 commit 0809e3e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

manifests/agent.pp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
$agent_noop = undef,
7777
$usecacheonfailure = undef,
7878
$certname = undef,
79+
$http_proxy_host = undef,
80+
$http_proxy_port = undef,
7981
) inherits puppet::params {
8082

8183
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -375,4 +377,18 @@
375377
section => 'main',
376378
}
377379
}
380+
if $http_proxy_host != undef {
381+
ini_setting {'puppetagenthttpproxyhost':
382+
ensure => present,
383+
setting => 'http_proxy_host',
384+
value => $http_proxy_host,
385+
}
386+
}
387+
if $http_proxy_port != undef {
388+
ini_setting {'puppetagenthttpproxyport':
389+
ensure => present,
390+
setting => 'http_proxy_port',
391+
value => $http_proxy_port,
392+
}
393+
}
378394
}

0 commit comments

Comments
 (0)