Skip to content

Commit bd43db1

Browse files
authored
Merge pull request #59 from cappetta/master
minor enhancements to bring osx bootstrap up-to-date
2 parents d3949b1 + 7d6c14f commit bd43db1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mac_os_x.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env bash
22
#
3-
# This bootstraps Puppet on Mac OS X 10.8 and 10.7.
3+
# This bootstraps Puppet on Mac OS X 10.9 - 10.12 && is depecrated for 10.7/10.8
44
#
55
# Optional environmental variables:
66
# - FACTER_PACKAGE_URL: The URL to the Facter package to install.
77
# - PUPPET_PACKAGE_URL: The URL to the Puppet package to install.
88
#
99
set -e
1010

11+
OSX_VERSION=$(sw_vers | grep -i productversion| awk '{print $2}' | cut -f1,2 -d'.')
12+
1113
#--------------------------------------------------------------------
1214
# Modifiable variables, please set them via environmental variables.
1315
#--------------------------------------------------------------------
14-
FACTER_PACKAGE_URL=${FACTER_PACKAGE_URL:-"http://downloads.puppetlabs.com/mac/facter-1.7.2.dmg"}
15-
PUPPET_PACKAGE_URL=${PUPPET_PACKAGE_URL:-"http://puppetlabs.com/downloads/mac/puppet-3.2.3.dmg"}
16+
FACTER_PACKAGE_URL=${FACTER_PACKAGE_URL:-"http://downloads.puppetlabs.com/mac/facter-latest.dmg"}
17+
PUPPET_PACKAGE_URL=${PUPPET_PACKAGE_URL:-"http://downloads.puppetlabs.com/mac/$OSX_VERSION/PC1/x86_64/puppet-agent-1.10.4-1.osx$OSX_VERSION.dmg"}
1618

1719
#--------------------------------------------------------------------
1820
# NO TUNABLES BELOW THIS POINT.
@@ -57,3 +59,5 @@ install_dmg "Facter" "${FACTER_PACKAGE_URL}"
5759

5860
# Hide all users from the loginwindow with uid below 500, which will include the puppet user
5961
defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES
62+
63+
echo "finished installing puppet..."

0 commit comments

Comments
 (0)