I recommend creating your own Yum repository and then having that repo installed on your client systems. I've done this at every site that I've used puppet at successfully. You can use the 'vendor' attribute if necessary, but simply enabling and prioritizing the local repo will have the effect you want.
Build the repo as documented anywhere, and then add it to your systems with the 'yumrepo' resource. On Feb 20, 2013, at 1:12 AM, David Gordon wrote: > I'm trying to use puppet to install internally-developed application RPMs via > a private RPM database. This is mostly because the runs have to be done as > non-root. The default RPM package provider doesn't allow any way to pass in > a value for --dbpath, but Googling a while back someone suggested extending > the rpm provider to accept extra args via the 'vendor' parameter. > > This works to a degree (installs do indeed contain a --dbpath argument), but > I can't get it to work quite right (errors of package already installed, > where it should just skip already-installed packages using latest). > > Looking a the code, I suspect this is because the first processing the > package provider seems to do is build a list of all installed packages. The > command logged does not contain the --dbpath, and so the system db is used. > My guess is this causes susbsequent install commands to be incorrect. > > Has anyone had any success getting Puppet to use alternative RPM databases? > > Thanks, > Dave > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-dev?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
