hello list!! I remember using a command a while ago that converts all my yum repos into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/ > yumrepos.pp but that isn''t quite doing it.. can someone please remind me of the way to accomplish this task? [root@virtcent13:~] #ralsh /etc/yum.repos.d > /etc/puppet/manifests/yumrepos.pp Could not run: Could not find type /etc/yum.repos.d thanks in advance!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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.
Try ralsh yumrepo Just discovered that ralsh can even use custom types out of my modules ... cool $ ralsh zypprepo zypprepo { ''repo-oss'': type => ''yast2'', descr => ''openSUSE-11.3-OSS'', baseurl => ''http://download.opensuse.org/distribution/11.3/repo/oss'', enabled => ''1'', autorefresh => ''1'', path => ''/'', keeppackages => ''0'' } On 9/02/11 9:13 AM, Tim Dunphy wrote:> hello list!! > > I remember using a command a while ago that converts all my yum repos > into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/> > yumrepos.pp but that isn''t quite doing it.. can someone please remind > me of the way to accomplish this task? > > [root@virtcent13:~] #ralsh /etc/yum.repos.d> /etc/puppet/manifests/yumrepos.pp > Could not run: Could not find type /etc/yum.repos.d > > > thanks in advance!! > > >-- 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.
that works!! thank you my dear friend!! On Tue, Feb 8, 2011 at 7:30 PM, Michael Knox <michael.knox.au@gmail.com> wrote:> Try ralsh yumrepo > > Just discovered that ralsh can even use custom types out of my modules ... > cool > > $ ralsh zypprepo > zypprepo { ''repo-oss'': > type => ''yast2'', > descr => ''openSUSE-11.3-OSS'', > baseurl => ''http://download.opensuse.org/distribution/11.3/repo/oss'', > enabled => ''1'', > autorefresh => ''1'', > path => ''/'', > keeppackages => ''0'' > } > > > > On 9/02/11 9:13 AM, Tim Dunphy wrote: >> >> hello list!! >> >> I remember using a command a while ago that converts all my yum repos >> into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/> >> yumrepos.pp but that isn''t quite doing it.. can someone please remind >> me of the way to accomplish this task? >> >> [root@virtcent13:~] #ralsh /etc/yum.repos.d> >> /etc/puppet/manifests/yumrepos.pp >> Could not run: Could not find type /etc/yum.repos.d >> >> >> thanks in advance!! >> >> >> > > -- > 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. > >-- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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 Feb 8, 4:30 pm, Michael Knox <michael.knox...@gmail.com> wrote:> Try ralsh yumrepo > > Just discovered that ralsh can even use custom types out of my modules > ... coolYup. You can do some really cool things with custom types and providers: tmp donavanm$ sudo puppet resource route53 route53 { ''foo.strewth.org.'': ensure => ''present'', value => [''192.168.0.1''], rtype => ''A'', zone => ''strewth.org.'', ttl => ''360'' } -- 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.
hey Michael, Where did you get zypprepo type? Did you write it? Can you post it? On Wed, Feb 09, 2011 at 11:30:25AM +1100, Michael Knox wrote:> Try ralsh yumrepo > > Just discovered that ralsh can even use custom types out of my > modules ... cool > > $ ralsh zypprepo > zypprepo { ''repo-oss'': > type => ''yast2'', > descr => ''openSUSE-11.3-OSS'', > baseurl => ''http://download.opensuse.org/distribution/11.3/repo/oss'', > enabled => ''1'', > autorefresh => ''1'', > path => ''/'', > keeppackages => ''0'' > } > > > > On 9/02/11 9:13 AM, Tim Dunphy wrote: > >hello list!! > > > > I remember using a command a while ago that converts all my yum repos > >into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/> > >yumrepos.pp but that isn''t quite doing it.. can someone please remind > >me of the way to accomplish this task? > > > >[root@virtcent13:~] #ralsh /etc/yum.repos.d> /etc/puppet/manifests/yumrepos.pp > >Could not run: Could not find type /etc/yum.repos.d > > > > > >thanks in advance!! > > > > > > > > -- > 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.-- -ashley Did you try poking at it with a stick? -- 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 Ashley, Not a problem I''ve added a release to Puppet Forge ... http://forge.puppetlabs.com/mikeknox/zypprepo It''s derived from the yumrepo type in Puppet core (0.25.5). It hasn''t been updated it for 2.6.x yet, works fine, but I noticed some warnings about ''audit'' when I tried ralsh on it. On 11/02/11 2:27 AM, Ashley Gould wrote:> hey Michael, > > Where did you get zypprepo type? Did you write it? Can you post it? > > > On Wed, Feb 09, 2011 at 11:30:25AM +1100, Michael Knox wrote: >> Try ralsh yumrepo >> >> Just discovered that ralsh can even use custom types out of my >> modules ... cool >> >> $ ralsh zypprepo >> zypprepo { ''repo-oss'': >> type => ''yast2'', >> descr => ''openSUSE-11.3-OSS'', >> baseurl => ''http://download.opensuse.org/distribution/11.3/repo/oss'', >> enabled => ''1'', >> autorefresh => ''1'', >> path => ''/'', >> keeppackages => ''0'' >> } >> >> >> >> On 9/02/11 9:13 AM, Tim Dunphy wrote: >>> hello list!! >>> >>> I remember using a command a while ago that converts all my yum repos >>> into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/> >>> yumrepos.pp but that isn''t quite doing it.. can someone please remind >>> me of the way to accomplish this task? >>> >>> [root@virtcent13:~] #ralsh /etc/yum.repos.d> /etc/puppet/manifests/yumrepos.pp >>> Could not run: Could not find type /etc/yum.repos.d >>> >>> >>> thanks in advance!! >>> >>> >>> >> -- >> 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 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.
works like a charm. thanks so much. On Fri, Feb 11, 2011 at 08:20:09AM +1100, Michael Knox wrote:> Hi Ashley, > Not a problem I''ve added a release to Puppet Forge ... > http://forge.puppetlabs.com/mikeknox/zypprepo > > It''s derived from the yumrepo type in Puppet core (0.25.5). > It hasn''t been updated it for 2.6.x yet, works fine, but I noticed > some warnings about ''audit'' when I tried ralsh on it. > > > On 11/02/11 2:27 AM, Ashley Gould wrote: > >hey Michael, > > > >Where did you get zypprepo type? Did you write it? Can you post it? > > > > > >On Wed, Feb 09, 2011 at 11:30:25AM +1100, Michael Knox wrote: > >>Try ralsh yumrepo > >> > >>Just discovered that ralsh can even use custom types out of my > >>modules ... cool > >> > >>$ ralsh zypprepo > >>zypprepo { ''repo-oss'': > >> type => ''yast2'', > >> descr => ''openSUSE-11.3-OSS'', > >> baseurl => ''http://download.opensuse.org/distribution/11.3/repo/oss'', > >> enabled => ''1'', > >> autorefresh => ''1'', > >> path => ''/'', > >> keeppackages => ''0'' > >>} > >> > >> > >> > >>On 9/02/11 9:13 AM, Tim Dunphy wrote: > >>>hello list!! > >>> > >>> I remember using a command a while ago that converts all my yum repos > >>>into a puppet manifest file. I have tried ralsh /etc/yum.repos.d/> > >>>yumrepos.pp but that isn''t quite doing it.. can someone please remind > >>>me of the way to accomplish this task? > >>> > >>>[root@virtcent13:~] #ralsh /etc/yum.repos.d> /etc/puppet/manifests/yumrepos.pp > >>>Could not run: Could not find type /etc/yum.repos.d > >>> > >>> > >>>thanks in advance!! > >>> > >>> > >>> > >>-- > >>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 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.-- -ashley Did you try poking at it with a stick? -- 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.