Vincent Nawrocki
2013-Sep-18 09:18 UTC
[Puppet Users] Cloud provisionner on CentOS 6 issue
Hi ! I am currently testing puppet on CentOS 6 and I wish to test the cloud provisioner tool. The problem is the following : I can''t use fog because of ruby version issue. The system : CentOS 6.4 with Ruby 1.8.7 (last version for CentOS) What I did to get the problem : install puppet-server install module puppetlabs-cloud_provisioner Trying install Fog -v 0.7.2 (cloud service library in ruby) but a dependence of it need a newer version of ruby (at least 1.9.2). So I installed RVM and then ruby 1.9.2 to be able to install fog and all its dependencies, it worked fine. Install guid gem (required by cloud_provisioner) Then I did : export RUBYLIB=/etc/puppet/modules/cloud_provisioner/lib:$RUBYLIB After this, PuppetLabs suggests to test if the installation worked fine by executing : # puppet help node_aws Here is the result : [root@poste403 ~]# puppet help node_aws /usr/local/rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.so: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Abandon (core dumped) I really don''t understand why this. If anyone encountered this problem before, thanks for help. Vincent -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Vincent Nawrocki
2013-Sep-19 08:52 UTC
[Puppet Users] Re: Cloud provisionner on CentOS 6 issue
Hi ! I finally found the solution using a previous version of the nokogiri gem. All the installation procedure is explained on http://nokogiri.org/tutorials/installing_nokogiri.html I needed to install some libxml packages with yum in order to install the version 1.5.10 which is running on ruby 1.8.7 Then I easily installed the Fog gem. Everything works fine now. I still have a question : I''m working with the open source version of puppet and I can''t use "puppet node_aws install ...", is this normal ? It doesn''t even appear in the ''puppet help node_aws''. Thanks in advance ! Vincent Le mercredi 18 septembre 2013 11:18:43 UTC+2, Vincent Nawrocki a écrit :> > Hi ! > > I am currently testing puppet on CentOS 6 and I wish to test the cloud > provisioner tool. > The problem is the following : I can''t use fog because of ruby version > issue. > > The system : CentOS 6.4 with Ruby 1.8.7 (last version for CentOS) > > What I did to get the problem : > install puppet-server > install module puppetlabs-cloud_provisioner > Trying install Fog -v 0.7.2 (cloud service library in ruby) but a > dependence of it need a newer version of ruby (at least 1.9.2). > So I installed RVM and then ruby 1.9.2 to be able to install fog and all > its dependencies, it worked fine. > Install guid gem (required by cloud_provisioner) > > Then I did : export RUBYLIB=/etc/puppet/modules/cloud_provisioner/lib:$RUBYLIB > > After this, PuppetLabs suggests to test if the installation worked fine by executing : > # puppet help node_aws > > Here is the result : > [root@poste403 ~]# puppet help node_aws > /usr/local/rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.so: [BUG] Segmentation fault > ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] > Abandon (core dumped) > > I really don''t understand why this. > If anyone encountered this problem before, thanks for help. > > Vincent > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.