This is the official release of Munki 5.1.2: an update to the Munki tools.
There are two changes in this release from version 5.1.1:
• Code signing has been removed from files in the embedded Python framework; the existing code signing was broken because of the process making the framework relocatable.
• When importing a Big Sur installer, the pkginfo will reflect the 35.5GB required space for upgrading from macOS Sierra or later. (See https://support.apple.com/en-us/HT211238): https://github.com/munki/munki/commit/0714196b87e35b2862723a66bc5a95e736d8449b
The main focus for the Munki 5.1.x releases is compatibility with macOS Big Sur, but there are other changes.
See release notes for Munki 5.1 (https://github.com/munki/munki/releases/tag/v5.1.0) and 5.1.1 (https://github.com/munki/munki/releases/tag/v5.1.1) for more details on those changes.
See https://github.com/munki/munki/wiki/Munki-5-Information for information on the changes in Munki 5.
In my Wednesday session for MacSysAdmin 2020 Online – “This One Goes to 11” – (http://macsysadmin.se/program/program.html) I talk about the implications of macOS Big Sur’s version numbering.
I didn’t talk in too much detail about how that might affect Munki admins specifically, and I’ll remedy that here.
Continue reading “This One Goes to 11: macOS version comparisons and Munki”
In my Wednesday session for MacSysAdmin 2020 Online, I talk a bit about the dual-versioning of macOS Big Sur. Since the talk was recorded and submitted a few weeks ago, some things have changed!
When I recorded the presentation, Big Sur was on beta 6. In that version of Big Sur, the platform module in the bundled Python reported Big Sur’s version as 11.0:
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Aug 24 2020, 12:22:49)
[GCC Apple LLVM 12.0.0 (clang-1184.108.40.206) [+internal-os, ptrauth-isa=sign+stri on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
('11.0', ('', '', ''), 'x86_64')
In Big Sur beta 9, that behavior changed:
Continue reading “MacSysAdmin 2020 update: This One Goes to 11”
MacSysAdmin is online this year and open to everyone!
Each day will have some great new presentations from a wide array of speakers. I have a presentation today (Tuesday) and ones on Wednesday and Friday as well. There are also some great presentations from the archives!
Check here tomorrow for some updates and expansions for my Wednesday presentation.
Here’s a list of resources for Mac admins converting their scripts from Python 2 to Python 3.
Python 3 framework
https://www.python.org/downloads/mac-osx/ (generic/stock framework from python.org)
(relocatable framework with pip, PyObjC, xattr, and six pre-installed)
Install python-modernize and pylint using pip:
pip install modernize
pip install pylint
Apple Installer pkg containing python-modernize and pylint:
six is installed as part of Apple’s Python 2.7 install; if you download the relocatable Python 3 framework from the link above, it also includes (a newer version of) six.
The Conservative Python 3 Porting Guide
Cheat Sheet: Writing Python 2-3 compatible code
This is a release candidate of Munki 4.0, a major architectural change to the Munki tools.
Munki 4 removes the dependency on Apple’s Python, and includes its own copy of Python 3.7.4.
Functionality is intended to be identical to Munki 3.6.4.
See Introduction to Munki 4 for more information on the architectural changes.
If you use AutoPkg, do not use the munkitools3.munki recipe to import this release, as it will not import the new embedded Python package and any clients upgraded with the results will be broken.
A new munkitools4.munki recipe is available in the AutoPkg recipes repo.
Previous betas for this code base were numbered as 3.7.0 betas.
Here are links for references in my MacSysAdmin 2019 presentation, AutoPkg 2020:
Integration and automation