Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Last active March 19, 2019 02:34
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 zackn9ne/d3a3bffa9c886a87f20570cdc00b2aa4 to your computer and use it in GitHub Desktop.
Save zackn9ne/d3a3bffa9c886a87f20570cdc00b2aa4 to your computer and use it in GitHub Desktop.
munki drops
SERVER="1.2.3.4."
#client side-set them
sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://$SERVER/munki_repo"
sudo defaults write /Library/Preferences/ManagedInstalls ClientIdentifier "basic_manifest"
sudo defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates -bool TRUE
#client side-check them
sudo defaults read /Library/Preferences/ManagedInstalls SoftwareRepoURL
sudo defaults read /Library/Preferences/ManagedInstalls ClientIdentifier
# Check suppress usernotification and installapplesoftwareupdate settings
defaults read /Library/Preferences/ManagedInstalls SuppressUserNotification
defaults read /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates
#admin side
/usr/local/munki/munkiimport ~/Downloads/1Password-7.2.4.pkg
vi /Users/Shared/munki_repo/manifests/basic_manifest
rsync -avz /Users/Shared/munki_repo root@$SERVER:/var/www/html
#autopkg side
autopkg run -v GoogleChrome.munki MakeCatalogs.munki #adds google chrome and essentially runs makecatalogs for any new item listed in this session of commands
#rsync side
rsync -avzh /Users/shared/munki_repo root@$SERVER:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment