Munki 5.1.2 Official Release

https://github.com/munki/munki/releases/tag/v5.1.2

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.

Munki 5.1.2 Official Release

This One Goes to 11: macOS version comparisons and Munki

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”
This One Goes to 11: macOS version comparisons and Munki

MacSysAdmin 2020 update: This One Goes to 11

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:

# sw_vers
ProductName:	macOS
ProductVersion:	11.0
BuildVersion:	20A5364e
# /usr/bin/python

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-1200.0.30.1) [+internal-os, ptrauth-isa=sign+stri on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.mac_ver()
('11.0', ('', '', ''), 'x86_64')

In Big Sur beta 9, that behavior changed:

Continue reading “MacSysAdmin 2020 update: This One Goes to 11”
MacSysAdmin 2020 update: This One Goes to 11

Python 3 conversion resources

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)

https://www.dropbox.com/s/2amjix194163li6/Python3.framework.zip?dl=0
(relocatable framework with pip, PyObjC, xattr, and six pre-installed)

python-modernize

https://python-modernize.readthedocs.io/en/latest/

pylint

https://pylint.readthedocs.io/en/latest/

Install python-modernize and pylint using pip:

pip install modernize
pip install pylint

-or-

Apple Installer pkg containing python-modernize and pylint:

https://www.dropbox.com/s/3e4gxs4fx4s05q9/py3portingtools-1.0.pkg?dl=0

six

https://six.readthedocs.io

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

https://portingguide.readthedocs.io/en/latest/index.html

Cheat Sheet: Writing Python 2-3 compatible code

https://python-future.org/compatible_idioms.html

One case-study

https://medium.com/@boxed/moving-a-large-and-old-codebase-to-python3-33a5a13f8c99

Python 3 conversion resources

Munki 4 Release Candidate 1

https://github.com/munki/munki/releases/tag/v4.0.0RC1

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.

IMPORTANT NOTE:
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.

Munki 4 Release Candidate 1

AutoPkg 2020: MacSysAdmin 2019 links

Here are links for references in my MacSysAdmin 2019 presentation, AutoPkg 2020:

Disney Animation

https://www.disneyanimation.com

AutoPkg

AutoPkg videos

Integration and automation

Python 3

More info

AutoPkg 2020: MacSysAdmin 2019 links