Skip to content

Commit 6a88eb8

Browse files
Revert "Add additional support for Mac OS X"
1 parent a3f0eeb commit 6a88eb8

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed

manifests/agent.pp

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# ['puppet_server'] - The dns name of the puppet master
77
# ['puppet_server_port'] - The Port the puppet master is running on
88
# ['puppet_agent_service'] - The service the puppet agent runs under
9-
# ['mac_version'] - The package version for Mac OS X
10-
# ['mac_facter_version'] - The Factor Version for Mac OS X
119
# ['puppet_agent_package'] - The name of the package providing the puppet agent
1210
# ['version'] - The version of the puppet agent to install
1311
# ['puppet_run_style'] - The run style of the agent either 'service', 'cron', 'external' or 'manual'
@@ -60,7 +58,6 @@
6058
$puppet_agent_service = $::puppet::params::puppet_agent_service,
6159
$puppet_agent_package = $::puppet::params::puppet_agent_package,
6260
$version = 'present',
63-
$puppet_facter_package = $::puppet::params::puppet_facter_package,
6461
$puppet_run_style = 'service',
6562
$puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
6663
$user_id = undef,
@@ -124,25 +121,9 @@
124121
gid => $group_id,
125122
}
126123
}
127-
case $::osfamily {
128-
'Darwin': {
129-
package {$puppet_facter_package:
130-
ensure => present,
131-
provider => $package_provider,
132-
source => "https://downloads.puppetlabs.com/mac/${puppet_facter_package}",
133-
}
134-
package { $puppet_agent_package:
135-
ensure => present,
136-
provider => $package_provider,
137-
source => "https://downloads.puppetlabs.com/mac/${puppet_agent_package}"
138-
}
139-
}
140-
default: {
141-
package { $puppet_agent_package:
142-
ensure => $version,
143-
provider => $package_provider,
144-
}
145-
}
124+
package { $puppet_agent_package:
125+
ensure => $version,
126+
provider => $package_provider,
146127
}
147128

148129
if $puppet_run_style == 'service' {
@@ -490,9 +471,9 @@
490471
}
491472
unless defined(Package['msgpack']) {
492473
package {'msgpack':
493-
ensure => 'latest',
494-
provider => 'gem',
495-
require => Package[$::puppet::params::ruby_dev, 'gcc'],
474+
ensure => 'latest',
475+
provider => 'gem',
476+
require => Package[$::puppet::params::ruby_dev, 'gcc'],
496477
}
497478
}
498479
}

manifests/params.pp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
$digest_algorithm = 'md5'
3434
$puppet_run_interval = 30
3535
$classfile = '$statedir/classes.txt'
36+
$package_provider = undef # falls back to system default
3637
$rundir = '/var/run/puppet'
3738
$puppet_passenger_ssl_protocol = 'TLSv1.2'
3839
$puppet_passenger_ssl_cipher = 'AES256+EECDH:AES256+EDH'
@@ -46,7 +47,6 @@
4647
$puppet_master_service = 'puppetmaster'
4748
$puppet_agent_service = 'puppet'
4849
$puppet_agent_package = 'puppet'
49-
$package_provider = undef # falls back to system default
5050
$puppet_defaults = '/etc/sysconfig/puppet'
5151
$puppet_conf = '/etc/puppet/puppet.conf'
5252
$puppet_vardir = '/var/lib/puppet'
@@ -60,7 +60,6 @@
6060
$puppet_master_service = 'puppetmasterd'
6161
$puppet_agent_service = 'puppet'
6262
$puppet_agent_package = 'puppet'
63-
$package_provider = undef # falls back to system default
6463
$puppet_conf = '/etc/puppet/puppet.conf'
6564
$puppet_vardir = '/var/lib/puppet'
6665
$puppet_ssldir = '/var/lib/puppet/ssl'
@@ -72,7 +71,6 @@
7271
$puppet_master_service = 'puppetmaster'
7372
$puppet_agent_service = 'puppet'
7473
$puppet_agent_package = 'puppet'
75-
$package_provider = undef # falls back to system default
7674
$puppet_defaults = '/etc/default/puppet'
7775
$puppet_conf = '/etc/puppet/puppet.conf'
7876
$puppet_vardir = '/var/lib/puppet'
@@ -84,16 +82,13 @@
8482
'FreeBSD': {
8583
$puppet_agent_service = 'puppet'
8684
$puppet_agent_package = 'sysutils/puppet'
87-
$package_provider = undef # falls back to system default
8885
$puppet_conf = '/usr/local/etc/puppet/puppet.conf'
8986
$puppet_vardir = '/var/puppet'
9087
$puppet_ssldir = '/var/puppet/ssl'
9188
}
9289
'Darwin': {
9390
$puppet_agent_service = 'com.puppetlabs.puppet'
94-
$puppet_agent_package = 'puppet-3.8.5.dmg'
95-
$puppet_facter_package = 'facter.2.4.5.dmg'
96-
$package_provider = 'pkgdmg'
91+
$puppet_agent_package = 'puppet'
9792
$puppet_conf = '/etc/puppet/puppet.conf'
9893
$puppet_vardir = '/var/lib/puppet'
9994
$puppet_ssldir = '/etc/puppet/ssl'

0 commit comments

Comments
 (0)