File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash
2
2
#
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
4
4
#
5
5
# Optional environmental variables:
6
6
# - FACTER_PACKAGE_URL: The URL to the Facter package to install.
7
7
# - PUPPET_PACKAGE_URL: The URL to the Puppet package to install.
8
8
#
9
9
set -e
10
10
11
+ OSX_VERSION=$( sw_vers | grep -i productversion| awk ' {print $2}' | cut -f1,2 -d' .' )
12
+
11
13
# --------------------------------------------------------------------
12
14
# Modifiable variables, please set them via environmental variables.
13
15
# --------------------------------------------------------------------
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" }
16
18
17
19
# --------------------------------------------------------------------
18
20
# NO TUNABLES BELOW THIS POINT.
@@ -57,3 +59,5 @@ install_dmg "Facter" "${FACTER_PACKAGE_URL}"
57
59
58
60
# Hide all users from the loginwindow with uid below 500, which will include the puppet user
59
61
defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES
62
+
63
+ echo " finished installing puppet..."
You can’t perform that action at this time.
0 commit comments