Last active
August 29, 2015 14:24
-
-
Save clburlison/2c557c620f35a81fa3ab to your computer and use it in GitHub Desktop.
Munki Client Settings
This file contains 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
include /usr/local/share/luggage/luggage.make | |
TITLE=MunkiClientSettings | |
REVERSE_DOMAIN=k12.bisd | |
PACKAGE_VERSION=1.0 | |
PAYLOAD=\ | |
pack-script-postinstall |
This file contains 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
#!/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