--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group, send email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Or a switch? Something like --migrate-scripts or possibly a family of --migrate-<key> which would tell munkiimport to use the specified values from the matching pkginfo with the highest version, if it's available, of course.
I'm not convinced making this list bigger is the right approach; at least not without per-key admin confirmation.
-Greg
This is what I had somewhat asked for a few days ago. What if a switch is added to the current Munkiimport that asks for confirmation of these keys? A simple y/n would suffice and might be of benefit until this "Meta-Munki" is fleshed out.
--
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.
This is what I had somewhat asked for a few days ago. What if a switch is added to the current Munkiimport that asks for confirmation of these keys? A simple y/n would suffice and might be of benefit until this "Meta-Munki" is fleshed out.
This. I think munkiimport is setup how Greg prefers to use it (after all, he did build it), but I think it would be worth giving us the flexibility of including other keys.
Maybe just go through some common keys when you run munkiimport and have it ask if you would like to be prompted to copy those keys over if present when importing packages. All it would be is a list of keys to ask about, stored with the other munkiimport config.
I think of the Meta Munki thing as a way of automating other things that may need to be done, not just a key here or there in the pkginfos.
Only if the option is enabled by default. By adding a switch, the admin takes responsibility and will know that there is still _some_ verification that must be done manually.
On Tuesday, January 29, 2013 11:33:49 AM UTC-6, gregn...@mac.com wrote:On Jan 29, 2013, at 7:17 AM, Nate <nate....@gmail.com> wrote:Expanding the list just makes the problem worse.
/usr/local/munki/munkiimport --copypkginfo "Firefox-18.0.1" /path/to/installer_item

Chiming in since I've been thinking about this a lot lately with MunkiAdmin. I call it "assimilating" a pkginfo with another. The current implementation looks like this when done manually:
<Screen Shot 2013-01-29 at 20.22.12.png>
--Hannes JuutilainenOn 29.1.2013, at 20.11, Gregory Neagle <gregn...@mac.com> wrote:So trying to fill in the blanks here.--copypkginfo SOMENAMEIs SOMENAME a path to an existing pkginfo file, or is munkiimport expected to search catalogs for that item?(My feeling is that if you already know you want to copy keys from a specific earlier pkginfo item, just open that in a editor and start copying!)Which keys are implied to be copied when you specify --copypkginfo ? Is there more to --configure now, and you specify keys to be copied somewhere?-GregOn Jan 29, 2013, at 10:07 AM, EG <eriknico...@gmail.com> wrote:/usr/local/munki/munkiimport --copypkginfo "Firefox-18.0.1" /path/to/installer_item--
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/groups/opt_out.
--
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/groups/opt_out.
Chiming in since I've been thinking about this a lot lately with MunkiAdmin. I call it "assimilating" a pkginfo with another. The current implementation looks like this when done manually:
<Screen Shot 2013-01-29 at 20.22.12.png>
--Hannes JuutilainenOn 29.1.2013, at 20.11, Gregory Neagle <gregn...@mac.com> wrote:So trying to fill in the blanks here.--copypkginfo SOMENAMEIs SOMENAME a path to an existing pkginfo file, or is munkiimport expected to search catalogs for that item?(My feeling is that if you already know you want to copy keys from a specific earlier pkginfo item, just open that in a editor and start copying!)Which keys are implied to be copied when you specify --copypkginfo ? Is there more to --configure now, and you specify keys to be copied somewhere?-GregOn Jan 29, 2013, at 10:07 AM, EG <eriknico...@gmail.com> wrote:/usr/local/munki/munkiimport --copypkginfo "Firefox-18.0.1" /path/to/installer_item--
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/groups/opt_out.
--
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/groups/opt_out.
Wouldn't this be better/more useful if you could actually _see_ what you were copying?
As an example: Munki can sometimes derive things like minimum_os_version and supported_architectures from the pkg itself.In most cases, I'd think you'd want to keep what Munki found in the pkg itself, and _not_ copy the value from a prior pkginfo.
How is that info communicated to the admin? It probably should be.
I don't believe in forking Munki, no thanks, I've been through the everyone-has-their-own-Radmind-scripts days.
On 29.1.2013, at 20.41, Gregory Neagle <gregn...@mac.com> wrote:Wouldn't this be better/more useful if you could actually _see_ what you were copying?Absolutely yes. Though I haven't found a good way to do this yet.As an example: Munki can sometimes derive things like minimum_os_version and supported_architectures from the pkg itself.In most cases, I'd think you'd want to keep what Munki found in the pkg itself, and _not_ copy the value from a prior pkginfo.How is that info communicated to the admin? It probably should be.True.
I completely agree that the recipe idea is a great idea and once implemented will help with the confusion and lead to an all-around better environment for people who are learning how to use munki or need guidance.
All of your issues with the above keys are valid, but by making it a non-default value (requiring --copypkginfo), the admin is already assuming that they need to manually edit the pkginfo file itself. All this does is preload values that don't have to be copy/pasted or merged into the new pkginfo file.
Your premise is just slightly invalid. I know I absolutely need to do manual editing, which is why I'm calling the switch. If the admin(s) make an assumption and don't validate what munkiimport --copypkginfo brings in, it is just as much of an issue as not creating manual entries into the pkginfo to begin with.
On Tuesday, January 29, 2013 2:14:56 PM UTC-6, gregn...@mac.com wrote:
In order to get a truly functional pkginfo file, Office updates really require installs items. munkiimport completely fails to help with this part of the task.
And Office updates are a frequent source of confusion and support requests on munki-dev and in the osx-server IRC channel. This is why I'm looking toward recipes -- recipes could address most or all of the above points.
-Greg
If they know they need to edit the pkginfo file anyway, there is _more_ info available to them if munkiimport does NOT copy pkginfo keys. There are the values from the prior pkginfo and there are the new values makepkginfo discovered for the new pkginfo.Copying them destroys info.
So we agree there is a need for admin editing.
--
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/groups/opt_out.
I absolutely see what you are talking about. I think there is a bit of miscommunication between myself and a few others with respect to this request. What I (and hopefully the others) want is the ability to copy the values that we are already creating manually.
Hash checks, <installs> and most of the other items that munkiimport creates with every pkg/dmg/etc should absolutely never be overwritten from a previous pkginfo file. What should happen is the ability to append previous data. We are talking about adding data, not overwriting.
I've actually been thinking about a repository/wiki type website that is somewhat similar to your idea of "metamunki". I believe that pkginfo files should be uniform and all conform to the same layout. It's great that we can just place any value anywhere and Munki will know what to do with it but at the same time I want every pkginfo to be "clean". Implementing this idea could actually have the benefit of uniformity by having munki place these values in a specific order. I see too many pkginfos posted here that do not conform to my own layout.
What should munki should do with this command is look for the values that we most commonly do manually and ask the admin if it should be imported.
To answer your question from earlier:--copypkginfo SOMENAMEIs SOMENAME a path to an existing pkginfo file, or is munkiimport expected to search catalogs for that item?Which keys are implied to be copied when you specify --copypkginfo ? Is there more to --configure now, and you specify keys to be copied somewhere?
In my mind, SOMENAME would be the equivalent of when we specify an item via manifestutil -> add-pkg "SOMENAME".
Munki would have to search the catalogs to ensure that it gets the latest pkginfo file. Optionally, an admin could direct munki to the exact path of the particular pkginfo file if desired.
I don't necessary think the latter would help with time but it would allow importing in the odd event that information needed to come from an earlier pkg.
--configure could definitely be an option for the admin to specify what values he/she would like upon importing via --copypkginfo, but I think if we all came together and discussed this further, we could figure out the values we all use on a daily basis.
On Tuesday, January 29, 2013 4:25:58 PM UTC-6, gregn...@mac.com wrote:If they know they need to edit the pkginfo file anyway, there is _more_ info available to them if munkiimport does NOT copy pkginfo keys. There are the values from the prior pkginfo and there are the new values makepkginfo discovered for the new pkginfo.Copying them destroys info.So we agree there is a need for admin editing.munkiimport's behavior now does not destroy information the admin can use when editing the pkginfo.-Greg
This is XML plist, layout really does not matter. Many of us who use tools like MunkiAdmin rarely even look at the XML.Making munki move items around within the XML would introduce many more problems,
and my preferred way to manually edit the XML is likely very different from yours and others.
A preferred formatting is fine, but not something that is worth coding, nor building into munkitools.
Ah yes, we do not want to copy ALL keys...just all optional keys. Any keys that are generated by makepkginfo when pointed at the item should be ignored and only the option keys should be copied when --copykeys is called. In most cases, these are keys such as unattended_install/uninstall, update_for, requires, installs
, etc. By diffing the pkginfo that makepkginfo generates and the most recent version from the repo, you can deduce which keys to copy. Perhaps this is an over simplification?