Installing Rosetta with Munki

Currently Rosetta is installed along with munkireport.

The pkginfo snippet is as follows:
<key>postinstall_script</key>
<string>#!/bin/sh
# Munkireport doesn't necessarily need rosetta, but this is a convenient place to
# install it.
arch=$(/usr/bin/arch)
if [ "$arch" = "arm64" ]; then
 /usr/sbin/softwareupdate --install-rosetta --agree-to-license
fi
</string>