Skip to content

Commit d90fa03

Browse files
Merge pull request #35 from pythianjoseph/master
Added listen parameter for puppet agent to listen for connections Thanks.
2 parents 2ebae1b + a50c497 commit d90fa03

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

manifests/agent.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# ['srv_domain'] - Domain to request the srv records
2121
# ['ordering'] - The way the agent processes resources. New feature in puppet 3.3.0
2222
# ['trusted_node_data'] - Enable the trusted facts hash
23+
# ['listen'] - If puppet agent should listen for connections
2324
#
2425
# Actions:
2526
# - Install and configures the puppet agent
@@ -52,6 +53,7 @@
5253
$srv_domain = undef,
5354
$ordering = undef,
5455
$trusted_node_data = undef,
56+
$listen = false,
5557
) inherits puppet::params {
5658

5759
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -258,4 +260,9 @@
258260
setting => 'pluginsync',
259261
value => $pluginsync,
260262
}
263+
ini_setting {'puppetagentlisten':
264+
ensure => present,
265+
setting => 'listen',
266+
value => $listen,
267+
}
261268
}

0 commit comments

Comments
 (0)