Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Install rubygem package in order to use with library
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sergey V. Arlashin  
View profile   Translate to Translated (View Original)
 More options Aug 21 2012, 9:14 am
From: "Sergey V. Arlashin" <sergey...@gmail.com>
Date: Tue, 21 Aug 2012 06:14:46 -0700 (PDT)
Local: Tues, Aug 21 2012 9:14 am
Subject: Install rubygem package in order to use with library

Hello!
I have a custom function which requires a ruby gem which I have in my
deb-repository.
If the package is installed beforehand manually the function works well.
But if I want to install the package with puppet I get the following error:

 out: Could not autoload zabbix_host: no such file to load -- rubix at

> /etc/puppet/modules/zabbix/manifests/init.pp:83 on node

the code looks like

  package { 'librubix-puppet-ruby1.8':

>     ensure    => installed
>   }

  zabbix_host { "${::fqdn}":

>     ensure   => present,
>     require  => Package['librubix-puppet-ruby1.8']
>   }

So it seems Puppet tries to execute zabbix_host before having the package
librubix-puppet-ruby1.8 installed.
Is it possible to get the package librubix-puppet-ruby1.8 installed before
executing zabbix_host ?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Denmat  
View profile  
 More options Aug 21 2012, 5:07 pm
From: Denmat <tu2bg...@gmail.com>
Date: Wed, 22 Aug 2012 07:07:50 +1000
Local: Tues, Aug 21 2012 5:07 pm
Subject: Re: [Puppet Users] Install rubygem package in order to use with library

Hi

See inline:

On 21/08/2012, at 23:14, "Sergey V. Arlashin" <sergey...@gmail.com> wrote:

> Hello!
> I have a custom function which requires a ruby gem which I have in my deb-repository.
> If the package is installed beforehand manually the function works well. But if I want to install the package with puppet I get the following error:

>  out: Could not autoload zabbix_host: no such file to load -- rubix at /etc/puppet/modules/zabbix/manifests/init.pp:83 on node

Where is rubix declared? What's on line  83 of your init.pp?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey V. Arlashin  
View profile  
 More options Aug 22 2012, 9:58 am
From: "Sergey V. Arlashin" <sergey...@gmail.com>
Date: Wed, 22 Aug 2012 17:58:49 +0400
Local: Wed, Aug 22 2012 9:58 am
Subject: Re: [Puppet Users] Install rubygem package in order to use with library

> Where is rubix declared?

modules/zabbix/lib/puppet/type/zabbix_host.rb:

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'rubix/lib')
require 'rubix'

require 'facter'

Puppet::Type.newtype(:zabbix_host) do
  @doc = "Manages zabbix hosts"

  self.debug "// Blah"

  ensurable

  newparam(:name) do
    desc ""

    isnamevar
  end

  newparam(:api_host) do
    desc "Zabbix server API"

    validate do |value|
      raise ArgumentError, "Void api_host parameter" if value.empty?
    end

  end
...
...

> What's on line  83 of your init.pp?

  zabbix_host { "${::fqdn}":
    ensure   => present,
    template => $zabbix_template,
    group    => 'Linux servers',
    api_host => $api_host,
    require  => Package['librubix-puppet-ruby1.8']
  }

On Aug 22, 2012, at 1:07 AM, Denmat wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Denmat  
View profile  
 More options Aug 23 2012, 4:12 am
From: Denmat <tu2bg...@gmail.com>
Date: Thu, 23 Aug 2012 18:12:28 +1000
Local: Thurs, Aug 23 2012 4:12 am
Subject: Re: [Puppet Users] Install rubygem package in order to use with library

Hi,

Righto, not sure that load path is correct, if it is can you successfully load the rubix gem using ruby's irb?

Den
On 22/08/2012, at 23:58, "Sergey V. Arlashin" <sergey...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »