Skip to content

Commit 4990859

Browse files
author
Stephen
committed
Merge branch 'master' of https://github.com/gigawhat/puppetmodule into gigawhat-master
2 parents 4c2bfeb + 860ae8b commit 4990859

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

manifests/agent.pp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# ['pluginsync'] - Whethere to have pluginsync
1919
# ['use_srv_records'] - Whethere to use srv records
2020
# ['srv_domain'] - Domain to request the srv records
21+
# ['ordering'] - The way the agent processes resources. New feature in puppet 3.3.0
2122
#
2223
# Actions:
2324
# - Install and configures the puppet agent
@@ -47,7 +48,8 @@
4748
$report = true,
4849
$pluginsync = true,
4950
$use_srv_records = false,
50-
$srv_domain = undef
51+
$srv_domain = undef,
52+
$ordering = undef
5153
) inherits puppet::params {
5254

5355
if ! defined(User[$::puppet::params::puppet_user]) {
@@ -186,6 +188,19 @@
186188
}
187189
}
188190

191+
if (($ordering) and ($::puppetversion < '3.3.0'))
192+
{
193+
fail('ordering requires puppet verions 3.3.0 or greater')
194+
}
195+
elsif (($ordering) and ($::puppetversion >= '3.3.0'))
196+
{
197+
ini_setting {'puppetagentordering':
198+
ensure => present,
199+
setting => 'ordering',
200+
value => $ordering,
201+
}
202+
}
203+
189204
ini_setting {'puppetagentenvironment':
190205
ensure => present,
191206
setting => 'environment',

0 commit comments

Comments
 (0)