On Wed, Mar 24, 2010 at 11:44 AM, Roy Nielsen <[email protected]> wrote: > Hello Nigel, > > On Wed, Mar 24, 2010 at 10:44 AM, Nigel Kersten <[email protected]> wrote: >> >> On Wed, Mar 24, 2010 at 9:02 AM, Roy Nielsen <[email protected]> wrote: >> > Hello Nigel, >> > >> > Yes, I'd prefer to have the ability to install a flat package integrated >> > into the pkgdmg package provider. I attached a patch to >> > http://projects.reductivelabs.com/issues/3378 . >> >> Excellent. I'll have a look at that. >> >> Have you guys thought about improving the way the pkgdmg provider >> decides whether or not a given package is installed? >> > > We've been working with the /var/db files. We've been trying to think of a > way to do this, and all we've come up with is to check if certian files are > installed - and do that specifically for each package... > > Not good... > >> >> The fundamental problem is that there's no intrinsic link between the >> supplied URI and the package identifiers of any packages it provides, >> and I've yet to come up with a solution better than the marker files >> in /var/db/ :( > > Hmm... well.... we might be able to do something with the plist files in > /var/db/receipts (but I think that's only a 10.6 thing) looking for > PackageVersion. > > In 10.5, the receipts are in /Library/Receipts - we could look at > /Library/Receipts/<receiptname>/Contents/Info.plist for the version... > (CFBundleShortVersionString) > > and create a parameter for receiptname and one for version... and have > the provider check for those. > > What do you think?
I think you're skipping the fundamental problem. Say you have a pkg(dmg/flat) with a URI of http://foo/mypackage.pkg or http://foo/mypackagepkg.dmg Without actually downloading the package/disk image, how does Puppet know what package identifiers are contained within that pkg/dmg ? And on the other side, how can the OS know what Puppet URI provided a given package identifier? I don't think we can get there from here without enforcing something like: * one package per Puppet URI * package name *MUST* match package bundle identifier which just sucks. Have you seen Munki Roy? http://code.google.com/p/munki/ I've kicked off a discussion with them about what a munki provider would look like. > -Roy > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > -- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
