Last updated at 2021-05-12 14:40:59 by ouit0354
Differences between revisions 9 and 10
Revision 9 as of 2021-05-12 14:22:34
Size: 1706
Editor: ouit0213
Comment:
Revision 10 as of 2021-05-12 14:38:21
Size: 2087
Editor: ouit0354
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Importing the latest MacOS upgrade into Munki = = Importing the latest macOS upgrade into Munki =
Line 3: Line 3:
Follow the following instructions to import the latest macOS upgrade to munki for distribution to all Orchard Macs. The following instructions demonstrate how to import the latest macOS upgrade to munki for distribution to all Orchard Macs.
Line 7: Line 7:
To download the latest macOS release we use a python script by Greg Neagle. This script can create disk images containing macOS Installer applications available via Apple's softwareupdate catalogs. The script is already located in a cloned github repo located on the build host Autumn-Glory {{{/srv/munki/macadmin-scripts}}} please ensure the repo is up to date prior to running. To download the latest macOS release we use the {{{installinstallmacos.py}}} script from Greg Neagle's [[https://github.com/munki/macadmin-scripts|macadmin-scripts repo]]. This script creates disk images containing macOS Installer applications available via Apple's softwareupdate catalogs. The repo is already cloned on the build host Autumn-Glory at {{{/srv/munki/macadmin-scripts}}} - please ensure the repo is up to date prior to running (with {{{git pull}}}.)
Line 9: Line 9:
Run the script ```installinstallmacos.py``` as the root user, chose a macOS and download. Run the script {{{installinstallmacos.py}}} as the root user, chose a macOS and download.
Line 12: Line 12:
== importing into munki == == Importing into munki ==
Line 14: Line 14:
Once you have your dmg downloaded, use ```munkiimport``` to manually add the dmg. The name should always relate to the macOS for example Install_macOS_Big_Sur and ensure the version is correctly applied, ```Installer_item_location``` is `macOS`. Once you have your dmg downloaded, use {{{munkiimport}}} on the repo server to manually import the dmg, e.g. {{{munkiimport Install_macOS_Big_Sur-11.3.1.dmg}}} The pkginfo's {{{name}}} should always relate to the version of macOS for example {{{Install_macOS_Big_Sur}}} the version of the pkg should match the version of macOS imported e.g. {{{11.3.1}}}, and should be imported to the munki repo subfolder {{{macOS}}}.
Line 18: Line 18:
Find the product page icon icns from within the dmg, you may have to mount the original dmg and search. Create a 256x256 png file of the icon, named the same as the munki pkginfo's Name key to {{{/srv/munki/orchard_repo/icons}}} To create the product icon for the OSC, mount the dmg and go to the {{{Contents/Resources}}} folder within the Installer application. Export a 256x256 png file of the {{{InstallAssistant.icns}}} icon, named the same as the munki pkginfo's {{{name}}} key (e.g. {{{Install_macOS_Big_Sur.png}}}) and copy it to {{{/srv/munki/orchard_repo/icons}}}

Importing the latest macOS upgrade into Munki

The following instructions demonstrate how to import the latest macOS upgrade to munki for distribution to all Orchard Macs.

Downloading the latest macOS release

To download the latest macOS release we use the installinstallmacos.py script from Greg Neagle's macadmin-scripts repo. This script creates disk images containing macOS Installer applications available via Apple's softwareupdate catalogs. The repo is already cloned on the build host Autumn-Glory at /srv/munki/macadmin-scripts - please ensure the repo is up to date prior to running (with git pull.)

Run the script installinstallmacos.py as the root user, chose a macOS and download.

Importing into munki

Once you have your dmg downloaded, use munkiimport on the repo server to manually import the dmg, e.g. munkiimport Install_macOS_Big_Sur-11.3.1.dmg The pkginfo's name should always relate to the version of macOS for example Install_macOS_Big_Sur the version of the pkg should match the version of macOS imported e.g. 11.3.1, and should be imported to the munki repo subfolder macOS.

Create and set icon

To create the product icon for the OSC, mount the dmg and go to the Contents/Resources folder within the Installer application. Export a 256x256 png file of the InstallAssistant.icns icon, named the same as the munki pkginfo's name key (e.g. Install_macOS_Big_Sur.png) and copy it to /srv/munki/orchard_repo/icons

Scoping

Use manana.orchard.private to create a new computer attribute mapping. Insert an attribute value of a pre-configured Jamf Smart Group all the computers you want to scope to.

Greg Neagles script - https://github.com/munki/macadmin-scripts

Using Munkiimport https://github.com/munki/munki/wiki/munkiimport

Jamf smart group example https://jss.orchard.ox.ac.uk/smartComputerGroups.html?id=748&o=r


Orchard is a close co-operation of