Request #3270

Provide an external repo and (RPM and DEB) metapackage to install the required ruby gems

Added by Alvaro Simon over 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:10/30/2014
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Pull request:


Dear OpenNebula maintainers

Until now we were using the ruby script /usr/share/one/install_gems provided by opennebula-ruby package to install the gems needed by OpenNebula. To improve the automated installation through Quattor (and probably Puppet as well) we have created the ruby gems rpms using the fpm utility (, the process is quite simple:

  • We create a new directory to download the required gems:
  1. mkdir one_gems
  2. cd one_gems
  • Install some deps to compile the new gems, in SL7:
  1. yum install gcc mariadb-devel ruby-devel libxml2 gcc-c++ libcurl libcurl-devel sqlite-devel rpm-build
  • Download and compile the required gems in your current directory:
  1. gem install --no-ri --no-rdoc --install-dir . rack sinatra thin zendesk_api sqlite3 sequel amazon-ec2 uuidtools curb net-ldap builder trollop treetop parse-cron aws-sdk ox softlayer_api configparser azure mysql
  • and we generate the rpms:
  1. find ./cache -name '*.gem' | xargs -rn1 fpm -s gem -t rpm

and the rpms are generated for each gem...
rubygem-amazon-ec2-0.9.17-1.noarch.rpm rubygem-hashie-3.3.1-1.noarch.rpm rubygem-nokogiri- rubygem-systemu-2.6.4-1.noarch.rpm
rubygem-aws-sdk-1.57.0-1.noarch.rpm rubygem-inflection-1.0.0-1.noarch.rpm rubygem-ox-2.1.3-1.x86_64.rpm....

It would be possible to include these rpms or deb packages in a OpenNebula repo to install them through a metapackage? let's say opennebula-gems? this will help to OpenNebula admins and it will improve the automated installation process.

Cheers and thanks!


#1 Updated by Alvaro Simon about 6 years ago

  • % Done changed from 0 to 100

This feature is already included in a new OpenNebula addon-installgems

#2 Updated by Ruben S. Montero about 6 years ago

  • Status changed from Pending to Closed

Also available in: Atom PDF