macOS 可以通过MDM的方式进行管理,再加上注册Apple School Manager/Apple Business Manager的方式来注册设备 即可实现近乎零接触部署。由于我们学校使用的是Mosyle,ASM/ABM只支持App Store的部署,而且Mosyle付费版才包含pkg部署。 这里通过Munki的部署来实现这个功能。例如谷歌浏览器,VLC等。
安装Munki
自macOS 10.14之后, 用户无需macOS Server来部署Munki.下面我来演示一下。安装步骤 去GitHub下载Munki 在安装里,可以选择自定义安装,并且取消安装Managed Software Center
/usr/local/munki/munkiimport ~/Downloads/Firefox\ 70.0.dmg ======================== #下面的东西会一行一行出。 ======================== Item name: Firefox Display name: Mozilla Firefox Description: Web browser from Mozilla Version: 61.0.2 Category: Internet Developer: Mozilla Unattended install: False Unattended uninstall: False Catalogs: testing Import this item? [y/n] y Upload item to subdirectory path []: apps/mozilla Path /Users/Shared/munki_repo/pkgs/apps/mozilla doesn't exist. Create it? [y/n] y No existing product icon found. Attempt to create a product icon? [y/n] y Attempting to extract and upload icon... Created icon: /Users/Shared/munki_repo/icons/Firefox.png Copying Firefox 61.0.2.dmg to /Users/Shared/munki_repo/pkgs/apps/mozilla/Firefox 61.0.2.dmg... Edit pkginfo before upload? [y/n]: y Saving pkginfo to /Users/Shared/munki_repo/pkgsinfo/apps/mozilla/Firefox-61.0.2... Rebuild catalogs? [y/n] y Adding apps/mozilla/Firefox-61.0.2 to testing...
步骤7 服务端设置客户接收manifest
1 2 3 4 5 6 7 8
/usr/local/munki/manifestutil Entering interactive mode... (type "help" for commands) > new-manifest site_default > add-catalog testing --manifest site_default Added testing to catalogs of manifest site_default. > add-pkg Firefox --manifest site_default Added Firefox to section managed_installs of manifest site_default. > exit