Joe wants to be able to store admin notes in pkgsinfo files and manifests. I've done this sort of this occasionally as well; all you need to do is pick a dictionary key that isn't being used by munki and use that.
The only issues are: problems may happen in the future if the munki development team decides to use a key you are using, and if you switch admin tools (munkiserver, Simian, MunkiAdmin, MunkiFace, etc) it would be nice if they were using the same keys to store notes.
So I'd like to propose officially reserving the key "notes" in both pkgsinfo files and manifests for use for admin notes. Munki itself won't use this field for anything, but administrators (and makers of Munki administration tools) are encouraged to use this key to store notes.
Any objections, comments, or better ideas?
Any other keys/fields we should reserve? I sometimes store the name of the primary user of a manifest in a field in the manifest -- do others?
-Greg
-Greg
Arjen
<key>notes</key>
<string>Some random string</string>
Is easy for both hand-editing and for admin tools to support.
-Greg
-Gary
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-- "The reward for work well done is the opportunity to do more."
-- "I tried, but it didn't work" is a lot better than "I wish I'd tried."
Gary R. Bernstein
Interim Assistant Director of FAA IT Services
College of Fine and Applied Arts
University of Illinois - Urbana-Champaign
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I would also suggest a following best practice: If admin tools need to store something in pkginfo files, use reverse dns naming scheme and take one top level item and do what you like with it.
So if MunkiAdmin needed to store some custom information in pkginfo files, It should create com.github.hjuutilainen.munkiadmin key and store everything under it.
--
Hannes Juutilainen
---
Joe Wollard
> That was more along the lines of what I proposed in the discussion Greg and I had, but that was to avoid future conflicts if munki ever decided to use a "notes" key in the future. If munki reserved this key right now, then all of the admin tools could safely use it. If they can all use it, there's no penalty or work involved with migrating to a different admin tool.
>
Exactly. (or migrating from _no_ admin tool other than a text editor!)
> I would also suggest a following best practice: If admin tools need to
> store something in pkginfo files, use reverse dns naming scheme and
> take one top level item and do what you like with it.
>
> So if MunkiAdmin needed to store some custom information in pkginfo
> files, It should create com.github.hjuutilainen.munkiadmin key and
> store everything under it.
We might take a page from the e-mail RFCs and reserve any key starting
with "X-" for local admin use, and just say that Munki itself will never
look at any such key.
This is somewhat the same proposal as yours, I grant, and I grant the
reserve-dns scheme is so common as to almost be native in the Mac admin
world. OTOH, "X-MunkiAdmin-Foo" is less to type, and might (like in
e-mail) be a fruitful proving ground for ideas.
- Aaron
--
Aaron Hall <aaron...@washburn.edu>
Asst. Systems & Network Administrator
Washburn University
785-670-2305
With makecatalogs to strip out this key entirely (?). Then you can choose not to expose such information on every client (the pkgsinfo directory does not need to be on your web server, or can be there but with no access).
Rob.
-Greg