Support for Munki2

146 views
Skip to first unread message

David Iwanicki

unread,
Mar 26, 2014, 3:26:20 PM3/26/14
to munkiad...@googlegroups.com
I ran into a problem with MunkiAdmin and an existing pkginfo I inserted the category and icon_file keys into, for Munki2 usage.

Are you considering adding Munki2 support, or at least error-catching to prevent additional keys in pkginfo files from choking MunkiAdmin?

Love the tool, couldn't manage Munki without it!

David Iwanicki

unread,
Mar 28, 2014, 1:33:50 PM3/28/14
to munkiad...@googlegroups.com
I've pulled a branch - not a fan of Xcode 5, but I'm trying to push commits back to github as I attempt to implement support for the new keys.

Hannes Juutilainen

unread,
Mar 28, 2014, 2:03:58 PM3/28/14
to munkiad...@googlegroups.com
Thanks,

New keys should not choke MunkiAdmin. It will keep them correctly when reading and writing pkginfo files as seen with the "_metadata" key which is completely unknown to MunkiAdmin.

I'm already working on the support for the new keys in the develop branch. However, I'd also like to create a completely new UI for the pkginfo editing. The current one is getting a bit crowded and I think it needs some reorganizing at least. So would you rather see these implemented in the current UI or wait for a new one?

--
Hannes Juutilainen
> --
> You received this message because you are subscribed to the Google Groups "MunkiAdmin" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to munkiadmin-de...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

David Iwanicki

unread,
Mar 31, 2014, 9:07:37 AM3/31/14
to munkiad...@googlegroups.com
adding a tab to the current pkginfo UI seemed to be the most logical way to handle this.

My Obj-C is rudimentary and and I'm new to Xcode 5, so I've been stumbling around a bit trying to get the data objects to type to the view. 

Per Greg, the only new keys in pkginfo are "category", "developer", and "icon_name". All are optional. The new Managed Software Center app in Munki2 will use the paging "name" key to look for a corresponding .png file in munki_repo/icons if icon_name is not specified. I set up the category and developer data objects as arrays, pre-populating categories based on official MAS list.

The icon is an image well in the UI, but that is a new construct to me, so not sure how to implement the model and controller.

What I've done so far is at https://github.com/diwanicki/munkiadmin

David

David Iwanicki

unread,
Mar 31, 2014, 9:21:30 AM3/31/14
to munkiad...@googlegroups.com
WTF AutoCorrect :/



On Monday, March 31, 2014 9:07:37 AM UTC-4, David Iwanicki wrote:
adding a tab to the current pkginfo UI seemed to be the most logical way to handle this.

My Obj-C is rudimentary and and I'm new to Xcode 5, so I've been stumbling around a bit trying to get the data objects to TIE to the view. 

Per Greg, the only new keys in pkginfo are "category", "developer", and "icon_name". All are optional. The new Managed Software Center app in Munki2 will use the PKGINFO "name" key to look for a corresponding .png file in munki_repo/icons if icon_name is not specified. I set up the category and developer data objects as arrays, pre-populating categories based on the official MAS list.

The icon item is an image well in the UI, but that is a new construct to me, so not sure how to implement the model and controller.

David Iwanicki

unread,
Mar 31, 2014, 2:25:08 PM3/31/14
to munkiad...@googlegroups.com
I've got category and developer keys working in my latest build: read from, edit, write to pkginfo. 
Reply all
Reply to author
Forward
0 new messages