Skip to content

Commit baf2d27

Browse files
author
Daniel Schaaff
committed
fix syntax error
1 parent b5febbb commit baf2d27

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manifests/agent.pp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# ['puppet_agent_service'] - The service the puppet agent runs under
99
# ['puppet_agent_package'] - The name of the package providing the puppet agent
1010
# ['version'] - The version of the puppet agent to install
11+
# ['mac_version'] - The package version for Mac OS X
12+
# ['mac_facter_version'] - The Factor Version for Mac OS X
1113
# ['puppet_run_style'] - The run style of the agent either 'service', 'cron', 'external' or 'manual'
1214
# ['puppet_run_interval'] - The run interval of the puppet agent in minutes, default is 30 minutes
1315
# ['puppet_run_command'] - The command that will be executed for puppet agent run
@@ -119,12 +121,12 @@
119121
}
120122
case $::osfamily {
121123
'Darwin': {
122-
package {$puppet_facter_package:
124+
package {"${mac_facter_version}.dmg":
123125
ensure => present,
124126
provider => $package_provider,
125127
source => "https://downloads.puppetlabs.com/mac/facter-${mac_facter_version}.dmg",
126128
}
127-
package { $puppet_agent_package:
129+
package { "${mac_version}.dmg":
128130
ensure => present,
129131
provider => $package_provider,
130132
source => "https://downloads.puppetlabs.com/mac/puppet-${mac_version}.dmg'"
@@ -135,7 +137,7 @@
135137
ensure => $version,
136138
provider => $package_provider,
137139
}
138-
}
140+
}
139141
}
140142
if $puppet_run_style == 'service' {
141143
$startonboot = 'yes'

0 commit comments

Comments
 (0)