byron appelt
2009-Dec-24 19:00 UTC
[Puppet Users] how to specify source parameter for gem packages
I am trying to use the package class to manage a gem and I need to specify the source. I tried doing the following: package { "gateway_install_support": ensure => installed, provider => gem, source => "http://gems.ublip.com:8808", require => Exec["ruby setup.rb"] } but this causes the error: err: //Node[byron-dev.numerexfast.com]/base_gateway/Package [gateway_install_support]/ensure: change from absent to present failed: Execution of ''/usr/bin/gem install --include-dependencies http://gems.ublip.com:8808'' returned 512: ERROR: could not find gem http://gems.ublip.com:8808 locally or in a repository Which looks like it is trying to use the source parameter as the gem name. -- 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.
Silviu Paragina
2009-Dec-26 12:11 UTC
Re: [Puppet Users] how to specify source parameter for gem packages
On 24.12.2009 21:00, byron appelt wrote:> I am trying to use the package class to manage a gem and I need to > specify the source. I tried doing the following: > > package { "gateway_install_support": > ensure => installed, > provider => gem, > source => "http://gems.ublip.com:8808", > require => Exec["ruby setup.rb"] > } >Source should be local afaik. You need a file resource to copy it and after that the package resource. The documentation for package source: http://reductivelabs.com/trac/puppet/wiki/TypeReference#id77 Also note this (file resource source) http://reductivelabs.com/trac/puppet/wiki/TypeReference#source Silviu> but this causes the error: > > err: //Node[byron-dev.numerexfast.com]/base_gateway/Package > [gateway_install_support]/ensure: change from absent to present > failed: Execution of ''/usr/bin/gem install --include-dependencies > http://gems.ublip.com:8808'' returned 512: ERROR: could not find gem > http://gems.ublip.com:8808 locally or in a repository > > Which looks like it is trying to use the source parameter as the gem > name. > > -- > > 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.
byron appelt
2009-Dec-30 20:43 UTC
[Puppet Users] Re: how to specify source parameter for gem packages
Answering my own question here. As it turns out, the source parameter does work as I was expecting it to, but only in puppet versions 0.24.5 and greater. I was trying with 0.24.4. On Dec 24, 1:00 pm, byron appelt <byron.app...@gmail.com> wrote:> I am trying to use the package class to manage agemand I need to > specify thesource. I tried doing the following: > > package { "gateway_install_support": > ensure => installed, > provider =>gem, > source=> "http://gems.ublip.com:8808", > require => Exec["ruby setup.rb"] > } > > but this causes the error: > > err: //Node[byron-dev.numerexfast.com]/base_gateway/Package > [gateway_install_support]/ensure: change from absent to present > failed: Execution of ''/usr/bin/geminstall --include-dependencieshttp://gems.ublip.com:8808''returned 512: ERROR: could not findgemhttp://gems.ublip.com:8808locally or in a repository > > Which looks like it is trying to use thesourceparameter as thegem > name.-- 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.