Skip to content

Commit fc92d75

Browse files
gigawhatjosh keife
authored andcommitted
Add check for puppet version before setting ordering setting in agent.pp
1 parent 150a41a commit fc92d75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

manifests/agent.pp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@
188188
}
189189
}
190190

191-
if $ordering
191+
if (($ordering == true) and (${::puppetversion} < '3.3.0'))
192+
{
193+
fail("ordering requires puppet verions 3.3.0 or greater")
194+
}
195+
elsif (($ordering == true) and (${::puppetversion} >= '3.3.0'))
192196
{
193197
ini_setting {'puppetagentordering':
194198
ensure => present,

0 commit comments

Comments
 (0)