Moscargo announcement, teensy webapp to allow browsing/ad-hoc download of your repo

78 views
Skip to first unread message

Allister Banks

unread,
Mar 25, 2015, 7:58:19 AM3/25/15
to munk...@googlegroups.com
Hey folks,
Thought it may be of interest to the list, I slapped together a little flask webapp to offer up the most recent contents of your munki repo for easy browsing and ad-hoc download, which you can find here: https://github.com/arubdesu/Moscargo
It's not the most bulletproof code ever, so luckily Pepijn Bruienne has already shown it a bit of love, and containerized it for the Docker-savvy, here: https://github.com/macadmins/Moscargo
I hope, even if folks don't need its spare feature set, this inspires tinkering with things that will ease their workflow. With more realized ideas out there it possibly could even inspire the reporting and repo mgmt projects out there to find features like this worth adopting. Cheers,
Allister

MiqViq

unread,
Mar 25, 2015, 8:47:20 AM3/25/15
to munk...@googlegroups.com
Nice.

In my munki environment I have heavily customized postinstall_scripts for many essential items.
Without those scripts there will be much manual work to be done for setting the initial prefs for apps and such.

Without looking into the code at all I suppose that it currently does not support running embedded preinstall/postinstall-scripts?

Could user download separate script-files to be executed manually (itemname-1.2.3-preinstall.command, itemname-1.2.3-postinstall.command)

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

Allister Banks

unread,
Mar 25, 2015, 9:10:45 AM3/25/15
to munk...@googlegroups.com
Hey MiqViq,
It explicitly skips nopkg (or AppleUpdateMetadata), so no. I bet there's a bunch of use cases out there for easy access to things we don't mind being publicly accessible, though, like 'view (your own|arbitrary) manifest' (assuming that's not sensitive in some way).

With flask only really requiring two files to be customized(there's been more text in this thread so far than there are lines of code in the project...), it would be semi-trivial(if you're already somewhat python-savvy) to:
1. modify the moscargo.html file to update the table column header, and
2. have the code explicitly only provide links for the items you're interested in - in this case, the link item in the dictionary being returned for each row in the table displayed could potentially be the pkginfo file viewable as a direct link, apache/nginx would handle the file type like normal ugly xml. 
Not sure how you may want to further parse/transform/serve that data in the webpage view/interface. Being more design and web tech savvy(Margarita uses a fair serving of javascript to give a great experience when modifying your reposado config) than me would of course help with delivering your feature.  
Hope that clarifies/points you in the right direction!
Allister

MiqViq

unread,
Mar 25, 2015, 9:22:27 AM3/25/15
to munk...@googlegroups.com
Hi Allister,

thanks for the clarification.
I was just wondering if this tool will help my techs if a tech in our helpdesk could fetch some items and install those without Munki client being installed.
But in this case the installer needs to be a package with all the fancy pre/post-actions silencing all the updaters/eulas/naggers jumping on user's face...

Anyways, thanks for an interesting tool!

- MiqViq

Erik Gomez

unread,
Mar 25, 2015, 9:23:48 AM3/25/15
to munk...@googlegroups.com
Feature request time!

No download links / read only

Point to a remote Munki server. 

Sent from my iPhone

A.E. van Bochoven

unread,
Mar 25, 2015, 9:31:21 AM3/25/15
to munk...@googlegroups.com
Maybe you're looking for 


-Arjen

Gregory Neagle

unread,
Mar 25, 2015, 10:10:45 AM3/25/15
to munk...@googlegroups.com
Maybe a better place for feature requests and functionality issues would be https://github.com/arubdesu/Moscargo/issues so as not to fill the _munki-dev_ list with discussion about _Moscargo_...

-Greg

Allister Banks

unread,
Mar 25, 2015, 3:56:16 PM3/25/15
to munk...@googlegroups.com
Pardon me that indeed, the issues page is the best place for feedback, but please do also give the readme a try :) 
I just pushed the first tagged release, please do kick the tires with that version and try emailing or catching me on the twitters or in ##osx-server IRC as well. Thanks, Allister
Reply all
Reply to author
Forward
0 new messages