Dear all, Is there any way to enable a particular yum-repo (like: yum -- enablerepo=<repo_name>), which is disabled as default, for a particular package installation? For our system, we need to "dag" for particular two packages but keeping it always enabled, clashes with other packages, which we don''t want to install for dag at all. What''s the option(s) I have to do that? Cheers!! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
You could do it with an Exec{} that enables the repo, another Exec{} that does a yum clean (but requires the first Exec{}), a Package{} that requires the first two Exec{}''s, and then a final Exec{} that disables the repo again, and depends on everything else happening first. Ick.... On Mon, Aug 15, 2011 at 11:17 AM, Sans <r.santanu.das@gmail.com> wrote:> Dear all, > > Is there any way to enable a particular yum-repo (like: yum -- > enablerepo=<repo_name>), which is disabled as default, for a > particular package installation? For our system, we need to "dag" for > particular two packages but keeping it always enabled, clashes with > other packages, which we don''t want to install for dag at all. What''s > the option(s) I have to do that? Cheers!! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garstang@gmail.com Cell: +1-805-340-5627 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Use include to set the packages your Dag repo is allowed to install. http://docs.puppetlabs.com/references/stable/type.html#yumrepo Or pull the packages into you local repo. On Aug 15, 11:17 am, Sans <r.santanu....@gmail.com> wrote:> Dear all, > > Is there any way to enable a particular yum-repo (like: yum -- > enablerepo=<repo_name>), which is disabled as default, for a > particular package installation? For our system, we need to "dag" for > particular two packages but keeping it always enabled, clashes with > other packages, which we don''t want to install for dag at all. What''s > the option(s) I have to do that? Cheers!!-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi Douglas, could you provide a bit of sample code pls? Cheers!! On Aug 15, 7:20 pm, Douglas Garstang <doug.garst...@gmail.com> wrote:> You could do it with an Exec{} that enables the repo, another Exec{} that > does a yum clean (but requires the first Exec{}), a Package{} that requires > the first two Exec{}''s, and then a final Exec{} that disables the repo > again, and depends on everything else happening first. Ick.... > > > > > > > > > > On Mon, Aug 15, 2011 at 11:17 AM, Sans <r.santanu....@gmail.com> wrote: > > Dear all, > > > Is there any way to enable a particular yum-repo (like: yum -- > > enablerepo=<repo_name>), which is disabled as default, for a > > particular package installation? For our system, we need to "dag" for > > particular two packages but keeping it always enabled, clashes with > > other packages, which we don''t want to install for dag at all. What''s > > the option(s) I have to do that? Cheers!! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > Regards, > > Douglas Garstanghttp://www.linkedin.com/in/garstang > Email: doug.garst...@gmail.com > Cell: +1-805-340-5627-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Aug 15, 2011 at 11:17:47AM -0700, Sans wrote:> Dear all, > > Is there any way to enable a particular yum-repo (like: yum -- > enablerepo=<repo_name>), which is disabled as default, for a > particular package installation? For our system, we need to "dag" for > particular two packages but keeping it always enabled, clashes with > other packages, which we don''t want to install for dag at all. What''s > the option(s) I have to do that? Cheers!! >you may want to watch http://projects.puppetlabs.com/issues/2247 -Stefan