Skip to content

Commit f0a8226

Browse files
author
Tim Meusel
committed
add the ability to install a package on the master
1 parent 49e05ea commit f0a8226

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

manifests/master.pp

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -316,25 +316,31 @@
316316
value => $digest_algorithm,
317317
}
318318
if $serialization_format != undef {
319-
if $serialization_format == 'msgpack' {
320-
unless defined(Package[$::puppet::params::ruby_dev]) {
321-
package {$::puppet::params::ruby_dev:
322-
ensure => 'latest',
323-
}
324-
} ->
325-
unless defined(Package['gcc']) {
326-
package {'gcc':
319+
if $serialization_package != undef {
320+
package { $serialization_package:
321+
ensure => latest,
322+
}
323+
} else {
324+
if $serialization_format == 'msgpack' {
325+
unless defined(Package[$::puppet::params::ruby_dev]) {
326+
package {$::puppet::params::ruby_dev:
327+
ensure => 'latest',
328+
}
329+
} ->
330+
unless defined(Package['gcc']) {
331+
package {'gcc':
332+
ensure => 'latest',
333+
}
334+
} ->
335+
package {'msgpack':
327336
ensure => 'latest',
337+
provider => 'gem',
328338
}
329-
} ->
330-
package {'msgpack':
331-
ensure => 'latest',
332-
provider => 'gem',
333339
}
334340
}
335341
ini_setting {'puppetagentserializationformat':
336342
setting => 'preferred_serialization_format',
337-
value => $serialization_format
343+
value => $serialization_format,
338344
}
339345
}
340346
anchor { 'puppet::master::end': }

0 commit comments

Comments
 (0)