Skip to content

Commit 2801317

Browse files
txajtxaj
authored andcommitted
Add stringify_facts option to client configuration
1 parent fa4cc12 commit 2801317

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manifests/agent.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# ['listen'] - If puppet agent should listen for connections
2424
# ['reportserver'] - The server to send transaction reports to.
2525
# ['digest_algorithm'] - The algorithm to use for file digests.
26+
# ['stringify_facts'] - Wether puppet transforms structured facts in strings or no. Defaults to true in puppet < 4, deprecated in puppet >=4 (and will default to false)
2627
#
2728
# Actions:
2829
# - Install and configures the puppet agent
@@ -58,6 +59,7 @@
5859
$listen = false,
5960
$reportserver = '$server',
6061
$digest_algorithm = $::puppet::params::digest_algorithm,
62+
$stringify_facts = undef,
6163
) inherits puppet::params {
6264

6365
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -284,4 +286,11 @@
284286
setting => 'digest_algorithm',
285287
value => $digest_algorithm,
286288
}
289+
if $stringify_facts != undef {
290+
ini_setting {'puppetagentstringifyfacts':
291+
ensure => present,
292+
setting => 'stringify_facts',
293+
value => $stringify_facts,
294+
}
295+
}
287296
}

0 commit comments

Comments
 (0)