--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
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.
To view this discussion visit https://groups.google.com/d/msgid/munki-dev/CE62C0C6-897A-4F09-B3B4-22EB8C775D6A%40mac.com.
To view this discussion visit https://groups.google.com/d/msgid/munki-dev/DA27437A-8CCF-4DE5-8A87-8B6B634BA498%40gu.se.
To view this discussion visit https://groups.google.com/d/msgid/munki-dev/7A9FC461-94A4-4EB1-8ABB-789AAF13393D%40mac.com.
In the past I’ve considered building a custom backend for munki that can dynamically generate catalogs/manifests based on server side business logic such as what network the request is coming from.
Our environment is quite complex (approx 1400 physical locations) and the desire to be able to cater for site based customisation is there, but not super high on the priorities. While this kind of thing could be done with client identifiers etc, at our scale that would be a lot to manage.
One issue holding me back from attempting this work is that we are a c#/.NET development team and there are no first party plist serialisation libraries and all the third party ones I have evaluated have some limitation that would prevent it from covering some corner case for munki. Off the top of my head, multi line strings for things like scripts comes to mind.
Yaml is interesting to me and it has the potential to solve that issue. However we would need it to be supported everywhere the client reads from the repo.
Regarding supporting both types at the same time.
I haven’t looked too deep at the PR, but does the client need to opt into YAML or is it automatically determined?
I’d prefer an opt in that also sets the http Accept header for requests from plist/xml (if it’s not already being set) to application/yaml then let the backend deal with it.
An admin could have 2 separate repos on your web server with both plist and Yaml and use the header to decide what file to return during a transition period over to 7.1 if you were so inclined.
Another pro for YAML that I haven’t seen mentioned is that we could also develop Yaml schemas for the various munki object types, that way you get autocomplete and validation/warnings in your IDE when editing them.