Skip to content

Instantly share code, notes, and snippets.

@clburlison
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clburlison/2c557c620f35a81fa3ab to your computer and use it in GitHub Desktop.
Save clburlison/2c557c620f35a81fa3ab to your computer and use it in GitHub Desktop.
Munki Client Settings
include /usr/local/share/luggage/luggage.make
TITLE=MunkiClientSettings
REVERSE_DOMAIN=k12.bisd
PACKAGE_VERSION=1.0
PAYLOAD=\
pack-script-postinstall
#!/bin/sh
### Sets the default Munki settings for clients at Birdville ISD.
### The client ID set to the hostname of the computer. This means the computer
### needs to be named first for this workflow to work.
SYSCLIENTID=$(scutil --get ComputerName)
defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://MUNKISERVER/munki_repo"
defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates -bool TRUE
defaults write /Library/Preferences/ManagedInstalls ClientIdentifier $SYSCLIENTID
# To set a static ID for a computer use the following
# defaults write /Library/Preferences/ManagedInstalls ClientIdentifier "music"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment