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-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


Reply via email to