Updating Munki Web Admin on 10.9 Mavericks Server

If your a fan and a user of MUNKI then you know what a great product it is and what community is behind it. Its backed by some of the largest companies around *(Disney, Google, etc..) and has consistently worked with all versions of OSX that have been around since Munki was created. The Munki client and admin tools requires Python 2.5 or higher with Objective-C Python bindings, which is included by default in Mac OS X. Munki is supported on Leopard through Mavericks.

Many third party utilities have been created to work along side Munki to augment the ability to manage inventory and other aspects of Munki such as software reporting, software licensing escrow, and machine tracking. One of the best utilities has been Munki Web Admin. A great walkthrough can be found on setting up Munki Web Admin on an OSX Server here https://code.google.com/p/munki/wiki/MunkiWebAdminOSXSetup but very little documentation exists on how to update your current installation to run effectively on Mavericks.

If your like me then you have updated your Mavericks server only to find that your old instance of Munki Web Admin no longer works. To fix this you must update your django and other components that make Munki Web Admin run.

Upgrading an existing install is not too difficult if you are using virtualenv and git (as recommended), Here’s what I did to upgrade my production instance:

cd into the virtualenv directory containing Munki Web Admin

cd /Volumes/munki/munkiwebadmin_env/

Activate the virtualenv (requires bash shell):

source bin/activate

Stop the MWA server process. In my case, it’s run via launchd

launchctl unload /Library/LaunchDaemons/com.googlecode.munki.munkiwebadmin.plist

Upgrade django

pip install django==1.5.1 --upgrade

Upgrade django-wsgiserver

pip install django-wsgiserver==0.8.0beta --upgrade

Change into the munkiwebadmin dir

cd munki

Use git to update munkiwebadmin

git pull

Optional — you may want to edit settings.py to avoid some deprecation warnings:

  1. Comment out or remove the ADMIN_MEDIA_PREFIX line.
  2. Replace the entire LOGGING section with the one from the (upgraded) settings_template.py.

If you are not using django-wsgiserver, you may need to collect static files (doing this is harmless if you don’t actually need it):

python manage.py collectstatic

Make sure your database tables are updated:

python manage.py syncdb

Restart MunkiWebAdmin (again, in my case, using launchd)

launchctl load /Library/LaunchDaemons/com.googlecode.munki.munkiwebadmin.plist

Hopefully your upgrade process won’t be too different. One of the gotchas that I found to be a little daunting was that my launch daemon had to be re-chowned in order to be loaded properly.

sudo chown root /Library/LaunchDaemons/com.googlecode.munki.munkiwebadmin.plist

Once done I could restart my system and have it automatically launch!

AI Usage Transparency Report

Pre-AI Era · Written before widespread use of generative AI tools

AI Signal Composition

Rep Tone Struct List Instr
Repetition: 65%
Tone: 52%
Structure: 59%
List: 2%
Instructional: 5%
Emoji: 0%

Score: 0.05 · Low AI Influence

Summary

Munki is a great product with a strong community behind it, supported by large companies like Disney and Google. It has consistently worked with all versions of OSX since its creation. Munki Web Admin requires Python 2.5 or higher and Objective-C Python bindings, which are included in Mac OS X. The upgrade process for Mavericks involves updating Django and other components using virtualenv and git.

Related Posts

Fontrestore, Apple’s fix for your fonts

FontAgent Pro is a great font management solution for OS X. One of the best things about it is that its 100% cloud based. You can run the entire thing hosted in their cloud instance or you can run it on your own server. It's a great solution for font management, and does everything from managing your font licenses, users, libraries, and sets. The one problem however is the fact that when deploying a new font solution, you find yourself in a quandary over the right way to deploy it....

Read more

Munki Report-PHP, the new old kid on the block

I have used SCCM for a while now and have to say that I find it very very powerful. The fact that collects plenty of information from the clients, uploads it to a SQL db and keeps a history, plus the ability of create dynamic computer collections based on querys to the SQL and then target those groups with tasks makes it extremely useful in an enterprise environment. Plus the amazing reports you can get if you have an SQL guru around!

Read more

Munki Software License Tracking

Beginning with the 0.9.1 builds of the munki tools, Munki can query a webserver to determine if there are available seats for licensed software (or any software you wish to make available via optional_installs, yet control the number of deployed copies). In order to use this feature, here are the things you need:

Read more

Deploying Printers with Munki on 10.9 Mavericks

You can use Profile Manager to manage printer lists but the functionality is limited. One major issue with managing printer lists with Profile Manager is if you add a printer to an Profile Manager client’s printer list, and the driver file for that the printer isn’t installed on the client system, the printer will be added using the Generic Printer Driver. Even if the printer driver file is installed later the printer continues to use the Generic Printer Driver.

Read more

Packaging & Deploying VMWare Fusion 5.0.1 – 6.0.2

If you're like me and need to deploy VMware in your environment and are unsure of the approach to use, then you have several options. If you use Casper, JAMF has come out with a PDF outlining the best methods for packaging and deploying VMware, its preferences and VMMachines. Since VMWare Fusion 5 however, VMware has included a nice manageable way to deploy VMware to all your machines. This alternative method eliminates the need for third-party tools or scripts, making it a straightforward solution for those who prefer a more...

Read more

10.9 Deploying Mac App Store Packages

If your like me then your happy that Apple has made several of their wonderful software titles free recently, specifically iLife and iWork for Mavericks. Apple has a defined workflow for deployment of these systems. Their method is to have companies enroll into their Volume Licensing Program once enrolled you can download apps from the app store and the iOS store and deploy these seamlessly to your devices with Profile Manager for Mavericks.

Read more

10.9 Mavericks, AutoDMG a match made in heaven

If your like me then you have an entire organization of users who are itching to get their hands on the latest Mavericks operating system and have been told to wait, we are testing. Truth is that its already been tested. I tested it all through the various developer builds and the issues have for the most part been very minimal which is great for a .0 release. However the issue really has been how are we going to deploy it.

Read more

10.9 Auto Enrollment Profile Manger Package

Many years ago when I was managing a fleet of computer using 10.6, I thought that I was a master systems administrator because I had all my computers managed by MCX. It took me years to get MCX working properly across all my systems, but it saved me countless hours of time and energy managing preferences and remote settings for new and existing systems. This made my life so much easier, as I no longer had to manually configure each system individually.

Read more

Backup your website data securely to Amazon S3

Your websites and your systems are only as good as the backup strategy that you have for them. While managing Mac’s you may think that having a strategy for website data backup is not relevant or important. Until you realize all of the technologies that you use on a daily basis that are actually moving to the web platform or cloud. For example OSX Wiki Server and Profile Manager 2 are all 100% web based technologies. If you use a web based ticketing system like Web Help Desk or Spiceworks...

Read more

Roll your own DNS monitoring with DIG, Bash & CRON

If your like me your always looking for ways to be notified of things changing in your IT Environment. There are many tools that you can use to help do this. StatusCake is a great free online tool for monitoring website and IP level uptime and downtime with baked in email notifications. Zeonoss and NAGIOS are great tools that can offer the same with SNMP Monitoring baked in as well.

Read more