[Puppet Users] Install rubygem package in order to use with library

2012-08-21 Thread Sergey V. Arlashin
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

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-21 Thread Denmat
Hi See inline: On 21/08/2012, at 23:14, "Sergey V. Arlashin" 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

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-22 Thread Sergey V. Arlashin
> 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(:n

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-23 Thread Denmat
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" wrote: >> Where is rubix declared? > > > modules/zabbix/lib/puppet/type/zabbix_host.rb: > > $LOAD_PATH.unshift File.join(File