Skip to content

Commit 587029c

Browse files
committed
Allow puppet package install from alternate providers
1 parent bdc25cd commit 587029c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

manifests/agent.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
$puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
5050
$user_id = undef,
5151
$group_id = undef,
52+
$package_provider = $::puppet::params::package_provider,
5253

5354
#[main]
5455
$templatedir = undef,
@@ -96,6 +97,7 @@
9697
}
9798
package { $puppet_agent_package:
9899
ensure => $version,
100+
provider => $package_provider,
99101
}
100102

101103
if $puppet_run_style == 'service' {

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
$puppetdb_strict_validation = true
3232
$environments = 'config'
3333
$digest_algorithm = 'md5'
34+
$package_provider = undef # falls back to system default
3435

3536
# Only used when environments == directory
3637
$environmentpath = "${confdir}/environments"

0 commit comments

Comments
 (0)