Hello All,
In all the examples that I see you configure one repo per file;
i.e:
yumrepo { "testing.com-repo":
baseurl => "http://repos.testing.com/fedora/$lsbdistrelease/",
descr => "Testing.com''s YUM repository",
enabled => 1,
gpgcheck => 0,
}
But how do I specify multiple entries to the same file?. For
instance, I just one to have one file "base.repo" to contains all the
entries for the repos for my environment. i.e:
/etc/yum.repo.d/base.repo:
[base]
baseurl <value>
Desc <value>
[3rdParty]
baseurl <value>
Desc <value>
I''m running puppet 0.25.5.
Thanks,
--
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.
So it looks like it''s a bug... Apparently, you can only specify one repo per file via Yumrepo definition... http://projects.puppetlabs.com/issues/2062 It looks like it was so long ago.. I''m surprised that no one has come up with a work around yet. On Jul 29, 3:15 pm, CraftyTech <hmmed...@gmail.com> wrote:> Hello All, > > In all the examples that I see you configure one repo per file; > i.e: > > yumrepo { "testing.com-repo": > baseurl => "http://repos.testing.com/fedora/$lsbdistrelease/", > descr => "Testing.com''s YUM repository", > enabled => 1, > gpgcheck => 0, > > } > > But how do I specify multiple entries to the same file?. For > instance, I just one to have one file "base.repo" to contains all the > entries for the repos for my environment. i.e: > /etc/yum.repo.d/base.repo: > [base] > baseurl <value> > Desc <value> > [3rdParty] > baseurl <value> > Desc <value> > > I''m running puppet 0.25.5. > > Thanks,-- 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.
Thomas Bellman
2010-Jul-30 12:14 UTC
[Puppet Users] Re: Multiple repositories under one file
On 2010-07-30 13:59, CraftyTech wrote:> So it looks like it''s a bug... Apparently, you can only specify one > repo per file via Yumrepo definition... > > http://projects.puppetlabs.com/issues/2062 > > It looks like it was so long ago.. I''m surprised that no one has come > up with a work around yet.That bug is about modifying existing repo definitions, where there already are multiple sections within a single file. Like the six repos in /etc/yum.repos.d/CentOS-Base.repo. And the reason no-one has bothered with working around that is probably that it actually works. At least I have had no problems with doing that with at least 0.24.4, 0.24.8, 0.25.0 and 0.25.4. As for creating new repo definitions using the yumrepo type, I personally don''t mind it putting each repo in its own file. /Bellman -- 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.
Gotcha... and I may also not mind creating multiple files under the repo directory, but how do I disable the default repos that come with CentOS? Thanks, On Jul 30, 8:14 am, Thomas Bellman <bell...@nsc.liu.se> wrote:> On 2010-07-30 13:59, CraftyTech wrote: > > > So it looks like it''s a bug... Apparently, you can only specify one > > repo per file via Yumrepo definition... > > >http://projects.puppetlabs.com/issues/2062 > > > It looks like it was so long ago.. I''m surprised that no one has come > > up with a work around yet. > > That bug is about modifying existing repo definitions, where there > already are multiple sections within a single file. Like the six > repos in /etc/yum.repos.d/CentOS-Base.repo. And the reason no-one > has bothered with working around that is probably that it actually > works. At least I have had no problems with doing that with at least > 0.24.4, 0.24.8, 0.25.0 and 0.25.4. > > As for creating new repo definitions using the yumrepo type, I > personally don''t mind it putting each repo in its own file. > > /Bellman-- 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.
Todd Zullinger
2010-Jul-30 21:39 UTC
Re: [Puppet Users] Re: Multiple repositories under one file
CraftyTech wrote:> Gotcha... and I may also not mind creating multiple files under the > repo directory, but how do I disable the default repos that come > with CentOS?yumrepo { ''base'': enabled => 0 } You can use ''enabled => absent'' to remove the repo definition from the file entirely. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tell a man there are 300 billion stars in the universe, he''ll believe you. Tell him a bench has wet paint on it and he''ll have to touch it to be sure.
Very helpful Todd. Thanks. On Jul 30, 5:39 pm, Todd Zullinger <t...@pobox.com> wrote:> CraftyTech wrote: > > Gotcha... and I may also not mind creating multiple files under the > > repo directory, but how do I disable the default repos that come > > with CentOS? > > yumrepo { ''base'': enabled => 0 } > > You can use ''enabled => absent'' to remove the repo definition from the > file entirely. > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:www.pobox.com/~tmz/pgp > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Tell a man there are 300 billion stars in the universe, he''ll believe > you. Tell him a bench has wet paint on it and he''ll have to touch it > to be sure. > > application_pgp-signature_part > < 1KViewDownload-- 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.