This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Forcing MCX Settings Refresh..." | |
if [ "`uname -r | cut -d "." -f 1`" -lt "11" ] | |
then | |
echo "Killing DirectoryService..." | |
killall DirectoryService | |
else | |
echo "Killing opendirectoryD..." | |
killall opendirectoryD | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Setting munki to bootstrap mode..." | |
touch /Users/Shared/.com.googlecode.munki.checkandinstallatstartup | |
echo "Forcing MCX Settings Refresh..." | |
killall DirectoryService | |
echo "Finished applying firstboot settings." | |
echo "Sleeping for 60 seconds..." | |
sleep 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo puppet resource group puppet ensure=present | |
sudo puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo puppet master --debug --verbose --no-daemonize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default Puppet Settings | |
server = puppet | |
report = true | |
pluginsync = true | |
certname = server.company.com (The FQDN of the machine that is running puppet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[master] | |
certname = puppet.company.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /etc/puppet/modules | |
sudo chown puppet /etc/puppet/modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/sbin:/usr/sbin:/bin:/usr/bin</string> | |
<key>RUBYLIB</key> | |
<string>/usr/lib/ruby/site_ruby/1.8/</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown root:wheel /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist | |
sudo chmod 644 /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo launchctl load -w /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist |