Skip to content

Commit c2f8804

Browse files
author
Daniel Schaaff
committed
add parameters to control the mac version #
1 parent 9ddc888 commit c2f8804

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

manifests/agent.pp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
$puppet_agent_service = $::puppet::params::puppet_agent_service,
5656
$puppet_agent_package = $::puppet::params::puppet_agent_package,
5757
$version = 'present',
58+
$mac_version = '3.8.4',
59+
$mac_facter_version = '2.4.4',
5860
$puppet_run_style = 'service',
5961
$puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
6062
$user_id = undef,
@@ -117,20 +119,15 @@
117119
}
118120
case $::osfamily {
119121
'Darwin': {
120-
#package {'hiera-1.3.4.dmg':
121-
# ensure => present,
122-
# provider => $package_provider,
123-
# source => 'https://downloads.puppetlabs.com/mac/hiera-1.3.4.dmg',
124-
#}
125-
package {'facter-2.4.4.dmg':
126-
ensure => present,
122+
package {$puppet_facter_package:
123+
ensure => $mac_facter_version,
127124
provider => $package_provider,
128-
source => 'https://downloads.puppetlabs.com/mac/facter-2.4.4.dmg',
125+
source => "https://downloads.puppetlabs.com/mac/facter-${mac_facter_version}.dmg",
129126
}
130127
package { $puppet_agent_package:
131-
ensure => $version,
128+
ensure => $mac_version,
132129
provider => $package_provider,
133-
source => 'https://downloads.puppetlabs.com/mac/puppet-3.8.4.dmg',
130+
source => "https://downloads.puppetlabs.com/mac/puppet-${mac_version}.dmg'"
134131
}
135132
}
136133
default: {

0 commit comments

Comments
 (0)