File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 18
18
# ['pluginsync'] - Whethere to have pluginsync
19
19
# ['use_srv_records'] - Whethere to use srv records
20
20
# ['srv_domain'] - Domain to request the srv records
21
+ # ['ordering'] - The way the agent processes resources. New feature in puppet 3.3.0
21
22
#
22
23
# Actions:
23
24
# - Install and configures the puppet agent
47
48
$report = true ,
48
49
$pluginsync = true ,
49
50
$use_srv_records = false ,
50
- $srv_domain = undef
51
+ $srv_domain = undef ,
52
+ $ordering = undef
51
53
) inherits puppet::params {
52
54
53
55
if ! defined (User[$::puppet::params::puppet_user ]) {
186
188
}
187
189
}
188
190
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
+
189
204
ini_setting {'puppetagentenvironment' :
190
205
ensure => present ,
191
206
setting => ' environment' ,
You can’t perform that action at this time.
0 commit comments