Foreman_discovery on rhel6

Hi all,

I've just installed foreman 1.2 on RHEL6 from the rpms available from the
foreman repo. This is all working fine.

Now I want to install the foreman_discovery plugin.

As per the README, I've created a Gemfile.local.rb. It's not quite clear
to me where this should be, so I've added it to
"/usr/share/foreman/bundler.d", and run "gem install bundle" since bundle
was missing.

"bundle update" returns the following error:

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
default_gemfile' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:indefault_gemfile'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
root' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:inbundle_path'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
configure_gem_home' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
configure' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:indefinition'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
update' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:inrun'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
invoke_task' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:indispatch'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
start&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:inblock in <top (required)>'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
with_friendly_errors&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in<top (required)>'
/opt/rh/ruby193/root/usr/bin/bundle:23:in load&#39; /opt/rh/ruby193/root/usr/bin/bundle:23:in<main>'

Any help is greatly appreciated.

Regards

James

Hi Ohad,

Many thanks for your response.

I have installed the gem in the scl environment and restarted foreman, but
now foreman complains about missing audited-activecord.

scl enable ruby193 "gem install foreman_discovery"

Successfully installed foreman_discovery-1.0.0
1 gem installed
Installing ri documentation for foreman_discovery-1.0.0…
Installing RDoc documentation for foreman_discovery-1.0.0…

service foreman restart

Restarting foreman rails app: [ OK ]

··· #

I installed the audited-activerecord gem, but foreman is still returning an
error about it being missing.

scl enable ruby193 “gem install audited-activerecord”

Successfully installed audited-activerecord-3.0.0
1 gem installed
Installing ri documentation for audited-activerecord-3.0.0…
Installing RDoc documentation for audited-activerecord-3.0.0…

Gem loading error: cannot load such file – audited/activerecord (RuntimeError)
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in strict_error' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:inrescue in rescue in block in system_require’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in rescue in block in system_require' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:inblock in system_require’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in each' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:insystem_require’
/usr/share/foreman/config/application.rb:11:in <top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' /usr/share/foreman/config/environment.rb:2:in<top (required)>’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire’
config.ru:3:in block in <main>' /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:ininstance_eval’
/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in initialize' config.ru:1:innew’
config.ru:1:in <main>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:ineval’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in preload_app' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:inmodule:App
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in <module:PhusionPassenger>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in

I’ve also added the gem to /usr/share/foreman/bundler.d/Gemfile.local.rb:

cat bundler.d/Gemfile.local.rb

gem ‘foreman_discovery’, :git =>
https://github.com/theforeman/foreman_discovery.git

Any ideas?

I’m a beginner when it comes to ruby and scl, so forgive me if I’m missing
anything obvious.

J

On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote:

Hi all,

I’ve just installed foreman 1.2 on RHEL6 from the rpms available from the
foreman repo. This is all working fine.

Now I want to install the foreman_discovery plugin.

As per the README, I’ve created a Gemfile.local.rb. It’s not quite clear
to me where this should be, so I’ve added it to
"/usr/share/foreman/bundler.d", and run “gem install bundle” since bundle
was missing.

“bundle update” returns the following error:

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
default_gemfile' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:indefault_gemfile’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
root' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:inbundle_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
configure_gem_home' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
configure' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:indefinition’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
update' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:inrun’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
invoke_task' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:indispatch’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
start' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:inblock in <top (required)>’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
with_friendly_errors' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in<top (required)>’
/opt/rh/ruby193/root/usr/bin/bundle:23:in load' /opt/rh/ruby193/root/usr/bin/bundle:23:in

Any help is greatly appreciated.

Regards

James

> Hi all,
>
> I've just installed foreman 1.2 on RHEL6 from the rpms available from the
> foreman repo. This is all working fine.
>
> Now I want to install the foreman_discovery plugin.
>
> As per the README, I've created a Gemfile.local.rb. It's not quite clear
> to me where this should be, so I've added it to
> "/usr/share/foreman/bundler.d", and run "gem install bundle" since bundle
> was missing.
>
> "bundle update" returns the following error:
>
> Could not locate Gemfile
> Bundler::GemfileNotFound: Could not locate Gemfile
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
> default_gemfile&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in &gt;default_gemfile'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
> root&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in &gt;bundle_path'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
> configure_gem_home&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in &gt;configure_gem_home_and_path'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
> configure&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in &gt;definition'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
> update&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in &gt;run'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
> invoke_task&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in &gt;dispatch'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
> start&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in &gt;block in <top (required)>'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
> with_friendly_errors&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in &gt;<top (required)>'
> /opt/rh/ruby193/root/usr/bin/bundle:23:in load&#39; &gt; /opt/rh/ruby193/root/usr/bin/bundle:23:in<main>'
>
> Any help is greatly appreciated.
>

since we use bundler_ext, bundler it self is not required… the right
workflow is:

  1. get the gem
    that could be a bit tricker since we now use ruby 1.93 with SCL, which
    basically mean
    scl enable ruby193 "gem install …"

  2. add it to your bundler.d/Gemfile.local.rb file

  3. restart foreman.

hope this helps,

Ohad

··· On Sat, Jul 20, 2013 at 1:24 PM, jamese wrote:

Regards

James


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

> Hi Ohad,
>
> Many thanks for your response.
>
> I have installed the gem in the scl environment and restarted foreman, but
> now foreman complains about missing audited-activecord.
>

did foreman worked before that? can you try to verify that the audited gem
in installed and not modified ? e.g. rpm -v ?

>
> # scl enable ruby193 "gem install foreman_discovery"
> Successfully installed foreman_discovery-1.0.0
> 1 gem installed
> Installing ri documentation for foreman_discovery-1.0.0…
> Installing RDoc documentation for foreman_discovery-1.0.0…
> # service foreman restart
> Restarting foreman rails app: [ OK ]
>

are you not running using passenger? according to your trace you are…

> #
>
> I installed the audited-activerecord gem, but foreman is still returning
> an error about it being missing.
>
> # scl enable ruby193 "gem install audited-activerecord"
> Successfully installed audited-activerecord-3.0.0
> 1 gem installed
> Installing ri documentation for audited-activerecord-3.0.0…
> Installing RDoc documentation for audited-activerecord-3.0.0…
> #
>
>
> Gem loading error:** cannot load such file – audited/activerecord (RuntimeError)
> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**30:**in strict_error&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**53:**inrescue in rescue in block in system_require'
> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**43:**in rescue in block in system_require&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**37:**inblock in system_require'
> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**35:**in each&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:**35:**insystem_require'
> /usr/share/foreman/config/application.rb:**11:**in &lt;top (required)&gt;&#39; &gt; /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:**36:**inrequire'
> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:**36:**in require&#39; &gt; /usr/share/foreman/config/environment.rb:**2:**in<top (required)>'
> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:**36:**in require&#39; &gt; /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:**36:**inrequire'
> config.ru:**3:**in block in &lt;main&gt;&#39; &gt; /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:**55:**ininstance_eval'
> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:**55:**in initialize&#39; &gt; config.ru:**1:**innew'
> config.ru:**1:**in &lt;main&gt;&#39; &gt; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:**82:**ineval'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:**82:**in preload_app&#39; &gt; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:**127:**in<module:**App>'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:**6:**in &lt;module:**PhusionPassenger&gt;&#39; &gt; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:**5:**in<main>'
>
>
> I've also added the gem to /usr/share/foreman/bundler.d/Gemfile.local.rb:
>
> # cat bundler.d/Gemfile.local.rb
> gem 'foreman_discovery', :git => "
> https://github.com/theforeman/foreman_discovery.git"
> #
>
> you don't need git here if you installed the gem, afair bundler_ext does
not support git ext.

Ohad

··· On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote:

Any ideas?

I’m a beginner when it comes to ruby and scl, so forgive me if I’m missing
anything obvious.

J

On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote:

Hi all,

I’ve just installed foreman 1.2 on RHEL6 from the rpms available from the
foreman repo. This is all working fine.

Now I want to install the foreman_discovery plugin.

As per the README, I’ve created a Gemfile.local.rb. It’s not quite clear
to me where this should be, so I’ve added it to
"/usr/share/foreman/bundler.d"**, and run “gem install bundle” since
bundle was missing.

“bundle update” returns the following error:

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-
1.3.5/lib/bundler/shared_**helpers.rb:22:in default_gemfile' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:231:indefault_gemfile’
/opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:177:in
root' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:99:inbundle_path’
/opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:378:in
configure_gem_home' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path’
/opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:90:in
configure' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/lib/bundler.rb:146:indefinition’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-
1.3.5/lib/bundler/cli.rb:301:**in update' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-** 1.3.5/lib/bundler/vendor/thor/**task.rb:27:inrun’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-
1.3.5/lib/bundler/vendor/thor/**invocation.rb:120:in invoke_task' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-** 1.3.5/lib/bundler/vendor/thor.**rb:344:indispatch’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-
1.3.5/lib/bundler/vendor/thor/**base.rb:434:in start' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/bin/bundle:20:inblock in <top (required)>’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-
1.3.5/lib/bundler/friendly_**errors.rb:3:in with_friendly_errors' /opt/rh/ruby193/root/usr/**local/share/gems/gems/bundler-**1.3.5/bin/bundle:20:in<top (required)>’
/opt/rh/ruby193/root/usr/bin/**bundle:23:in load' /opt/rh/ruby193/root/usr/bin/**bundle:23:in

Any help is greatly appreciated.

Regards

James


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Ohad,

Foreman was definitely working before I started with the discovery
plugin. I am running passenger - I installed this on a plain CentOS
6.4 box and followed the installation instructions from theforeman
manual.
I've restarted the httpd service and stopped foreman service (I
misunderstood how that bit worked).

The gem looks to be installed:

rpm -qa | grep audited

ruby193-rubygem-audited-3.0.0-2.el6.noarch
ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch

I've also removed the git part from the Gemfile.local.rb, same error :frowning:

··· On 21 July 2013 12:16, Ohad Levy wrote: > > > On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote: >> >> Hi Ohad, >> >> Many thanks for your response. >> >> I have installed the gem in the scl environment and restarted foreman, but >> now foreman complains about missing audited-activecord. > > > did foreman worked before that? can you try to verify that the audited gem > in installed and not modified ? e.g. rpm -v ? >> >> >> # scl enable ruby193 "gem install foreman_discovery" >> Successfully installed foreman_discovery-1.0.0 >> 1 gem installed >> Installing ri documentation for foreman_discovery-1.0.0... >> Installing RDoc documentation for foreman_discovery-1.0.0... >> # service foreman restart >> Restarting foreman rails app: [ OK ] > > > are you not running using passenger? according to your trace you are... > > >> >> # >> >> I installed the audited-activerecord gem, but foreman is still returning >> an error about it being missing. >> >> # scl enable ruby193 "gem install audited-activerecord" >> Successfully installed audited-activerecord-3.0.0 >> 1 gem installed >> Installing ri documentation for audited-activerecord-3.0.0... >> Installing RDoc documentation for audited-activerecord-3.0.0... >> # >> >> >> Gem loading error: cannot load such file -- audited/activerecord >> (RuntimeError) >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in >> `strict_error' >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in >> `rescue in rescue in block in system_require' >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in >> `rescue in block in system_require' >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in >> `block in system_require' >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> `each' >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> `system_require' >> /usr/share/foreman/config/application.rb:11:in `' >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> `require' >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> `require' >> /usr/share/foreman/config/environment.rb:2:in `' >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> `require' >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> `require' >> config.ru:3:in `block in ' >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> `instance_eval' >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> `initialize' >> config.ru:1:in `new' >> config.ru:1:in `' >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> `eval' >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> `preload_app' >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in >> `' >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in >> `' >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in >> `' >> >> >> I've also added the gem to /usr/share/foreman/bundler.d/Gemfile.local.rb: >> >> # cat bundler.d/Gemfile.local.rb >> gem 'foreman_discovery', :git => >> "https://github.com/theforeman/foreman_discovery.git" >> # >> > you don't need git here if you installed the gem, afair bundler_ext does not > support git ext. > > Ohad > >> >> Any ideas? >> >> I'm a beginner when it comes to ruby and scl, so forgive me if I'm missing >> anything obvious. >> >> J >> >> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: >>> >>> Hi all, >>> >>> I've just installed foreman 1.2 on RHEL6 from the rpms available from the >>> foreman repo. This is all working fine. >>> >>> Now I want to install the foreman_discovery plugin. >>> >>> As per the README, I've created a Gemfile.local.rb. It's not quite clear >>> to me where this should be, so I've added it to >>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since bundle >>> was missing. >>> >>> "bundle update" returns the following error: >>> >>> Could not locate Gemfile >>> Bundler::GemfileNotFound: Could not locate Gemfile >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >>> `default_gemfile' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >>> `default_gemfile' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >>> `root' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >>> `bundle_path' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >>> `configure_gem_home' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >>> `configure_gem_home_and_path' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >>> `configure' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >>> `definition' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >>> `update' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >>> `run' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >>> `invoke_task' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >>> `dispatch' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >>> `start' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>> `block in ' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >>> `with_friendly_errors' >>> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>> `' >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >>> >>> Any help is greatly appreciated. >>> >>> Regards >>> >>> James >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-users+unsubscribe@googlegroups.com. >> >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Foreman users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > >

Did you run scl enable ruby193 "bundle update" in foreman directory?

W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 użytkownik jamese napisał:

··· > > Hi Ohad, > > Foreman was definitely working before I started with the discovery > plugin. I am running passenger - I installed this on a plain CentOS > 6.4 box and followed the installation instructions from theforeman > manual. > I've restarted the httpd service and stopped foreman service (I > misunderstood how that bit worked). > > The gem looks to be installed: > > # rpm -qa | grep audited > ruby193-rubygem-audited-3.0.0-2.el6.noarch > ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch > > I've also removed the git part from the Gemfile.local.rb, same error :( > > On 21 July 2013 12:16, Ohad Levy <ohad...@gmail.com > wrote: > > > > > > On Sun, Jul 21, 2013 at 2:07 PM, jamese <james.e...@gmail.com> > wrote: > >> > >> Hi Ohad, > >> > >> Many thanks for your response. > >> > >> I have installed the gem in the scl environment and restarted foreman, > but > >> now foreman complains about missing audited-activecord. > > > > > > did foreman worked before that? can you try to verify that the audited > gem > > in installed and not modified ? e.g. rpm -v ? > >> > >> > >> # scl enable ruby193 "gem install foreman_discovery" > >> Successfully installed foreman_discovery-1.0.0 > >> 1 gem installed > >> Installing ri documentation for foreman_discovery-1.0.0... > >> Installing RDoc documentation for foreman_discovery-1.0.0... > >> # service foreman restart > >> Restarting foreman rails app: [ OK ] > > > > > > are you not running using passenger? according to your trace you are... > > > > > >> > >> # > >> > >> I installed the audited-activerecord gem, but foreman is still > returning > >> an error about it being missing. > >> > >> # scl enable ruby193 "gem install audited-activerecord" > >> Successfully installed audited-activerecord-3.0.0 > >> 1 gem installed > >> Installing ri documentation for audited-activerecord-3.0.0... > >> Installing RDoc documentation for audited-activerecord-3.0.0... > >> # > >> > >> > >> Gem loading error: cannot load such file -- audited/activerecord > >> (RuntimeError) > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in > > >> `strict_error' > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in > > >> `rescue in rescue in block in system_require' > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in > > >> `rescue in block in system_require' > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in > > >> `block in system_require' > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in > > >> `each' > >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in > > >> `system_require' > >> /usr/share/foreman/config/application.rb:11:in `' > >> > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> `require' > >> > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> `require' > >> /usr/share/foreman/config/environment.rb:2:in `' > >> > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> `require' > >> > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> `require' > >> config.ru:3:in `block in ' > >> > >> > /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in > > >> `instance_eval' > >> > >> > /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in > > >> `initialize' > >> config.ru:1:in `new' > >> config.ru:1:in `' > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in > > >> `eval' > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in > > >> `preload_app' > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in > > >> `' > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in > > >> `' > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in > > >> `' > >> > >> > >> I've also added the gem to > /usr/share/foreman/bundler.d/Gemfile.local.rb: > >> > >> # cat bundler.d/Gemfile.local.rb > >> gem 'foreman_discovery', :git => > >> "https://github.com/theforeman/foreman_discovery.git" > >> # > >> > > you don't need git here if you installed the gem, afair bundler_ext does > not > > support git ext. > > > > Ohad > > > >> > >> Any ideas? > >> > >> I'm a beginner when it comes to ruby and scl, so forgive me if I'm > missing > >> anything obvious. > >> > >> J > >> > >> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: > >>> > >>> Hi all, > >>> > >>> I've just installed foreman 1.2 on RHEL6 from the rpms available from > the > >>> foreman repo. This is all working fine. > >>> > >>> Now I want to install the foreman_discovery plugin. > >>> > >>> As per the README, I've created a Gemfile.local.rb. It's not quite > clear > >>> to me where this should be, so I've added it to > >>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since > bundle > >>> was missing. > >>> > >>> "bundle update" returns the following error: > >>> > >>> Could not locate Gemfile > >>> Bundler::GemfileNotFound: Could not locate Gemfile > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in > > >>> `default_gemfile' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in > > >>> `default_gemfile' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in > > >>> `root' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in > > >>> `bundle_path' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in > > >>> `configure_gem_home' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in > > >>> `configure_gem_home_and_path' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in > > >>> `configure' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in > > >>> `definition' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in > > >>> `update' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in > > >>> `run' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in > > >>> `invoke_task' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in > > >>> `dispatch' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in > > >>> `start' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > > >>> `block in ' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in > > >>> `with_friendly_errors' > >>> > >>> > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > > >>> `' > >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' > >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' > >>> > >>> Any help is greatly appreciated. > >>> > >>> Regards > >>> > >>> James > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Foreman users" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to foreman-user...@googlegroups.com . > >> > >> To post to this group, send email to forema...@googlegroups.com. > > >> Visit this group at http://groups.google.com/group/foreman-users. > >> For more options, visit https://groups.google.com/groups/opt_out. > >> > >> > > > > > > -- > > You received this message because you are subscribed to a topic in the > > Google Groups "Foreman users" group. > > To unsubscribe from this topic, visit > > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > > > To unsubscribe from this group and all its topics, send an email to > > foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com. > > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > >

That gives the following error (run from /usr/share/foreman):

scl enable ruby193 "bundle update --verbose"

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
default_gemfile&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:indefault_gemfile'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
root&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:inbundle_path'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
configure_gem_home&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
configure&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:indefinition'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
update&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:inrun'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
invoke_task&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:indispatch'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
start&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:inblock in <top (required)>'
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
with_friendly_errors&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in<top (required)>'
/opt/rh/ruby193/root/usr/bin/bundle:23:in load&#39; /opt/rh/ruby193/root/usr/bin/bundle:23:in<main>'

··· On 22 July 2013 07:47, Mateusz Kisielewski wrote: > Did you run scl enable ruby193 "bundle update" in foreman directory? > > W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 użytkownik jamese napisał: >> >> Hi Ohad, >> >> Foreman was definitely working before I started with the discovery >> plugin. I am running passenger - I installed this on a plain CentOS >> 6.4 box and followed the installation instructions from theforeman >> manual. >> I've restarted the httpd service and stopped foreman service (I >> misunderstood how that bit worked). >> >> The gem looks to be installed: >> >> # rpm -qa | grep audited >> ruby193-rubygem-audited-3.0.0-2.el6.noarch >> ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch >> >> I've also removed the git part from the Gemfile.local.rb, same error :( >> >> On 21 July 2013 12:16, Ohad Levy wrote: >> > >> > >> > On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote: >> >> >> >> Hi Ohad, >> >> >> >> Many thanks for your response. >> >> >> >> I have installed the gem in the scl environment and restarted foreman, >> >> but >> >> now foreman complains about missing audited-activecord. >> > >> > >> > did foreman worked before that? can you try to verify that the audited >> > gem >> > in installed and not modified ? e.g. rpm -v ? >> >> >> >> >> >> # scl enable ruby193 "gem install foreman_discovery" >> >> Successfully installed foreman_discovery-1.0.0 >> >> 1 gem installed >> >> Installing ri documentation for foreman_discovery-1.0.0... >> >> Installing RDoc documentation for foreman_discovery-1.0.0... >> >> # service foreman restart >> >> Restarting foreman rails app: [ OK ] >> > >> > >> > are you not running using passenger? according to your trace you are... >> > >> > >> >> >> >> # >> >> >> >> I installed the audited-activerecord gem, but foreman is still >> >> returning >> >> an error about it being missing. >> >> >> >> # scl enable ruby193 "gem install audited-activerecord" >> >> Successfully installed audited-activerecord-3.0.0 >> >> 1 gem installed >> >> Installing ri documentation for audited-activerecord-3.0.0... >> >> Installing RDoc documentation for audited-activerecord-3.0.0... >> >> # >> >> >> >> >> >> Gem loading error: cannot load such file -- audited/activerecord >> >> (RuntimeError) >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in >> >> `strict_error' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in >> >> `rescue in rescue in block in system_require' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in >> >> `rescue in block in system_require' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in >> >> `block in system_require' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> >> `each' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> >> `system_require' >> >> /usr/share/foreman/config/application.rb:11:in `' >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> `require' >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> `require' >> >> /usr/share/foreman/config/environment.rb:2:in `' >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> `require' >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> `require' >> >> config.ru:3:in `block in ' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> >> `instance_eval' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> >> `initialize' >> >> config.ru:1:in `new' >> >> config.ru:1:in `' >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> >> `eval' >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> >> `preload_app' >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in >> >> `' >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in >> >> `' >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in >> >> `' >> >> >> >> >> >> I've also added the gem to >> >> /usr/share/foreman/bundler.d/Gemfile.local.rb: >> >> >> >> # cat bundler.d/Gemfile.local.rb >> >> gem 'foreman_discovery', :git => >> >> "https://github.com/theforeman/foreman_discovery.git" >> >> # >> >> >> > you don't need git here if you installed the gem, afair bundler_ext does >> > not >> > support git ext. >> > >> > Ohad >> > >> >> >> >> Any ideas? >> >> >> >> I'm a beginner when it comes to ruby and scl, so forgive me if I'm >> >> missing >> >> anything obvious. >> >> >> >> J >> >> >> >> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: >> >>> >> >>> Hi all, >> >>> >> >>> I've just installed foreman 1.2 on RHEL6 from the rpms available from >> >>> the >> >>> foreman repo. This is all working fine. >> >>> >> >>> Now I want to install the foreman_discovery plugin. >> >>> >> >>> As per the README, I've created a Gemfile.local.rb. It's not quite >> >>> clear >> >>> to me where this should be, so I've added it to >> >>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since >> >>> bundle >> >>> was missing. >> >>> >> >>> "bundle update" returns the following error: >> >>> >> >>> Could not locate Gemfile >> >>> Bundler::GemfileNotFound: Could not locate Gemfile >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >> >>> `default_gemfile' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >> >>> `default_gemfile' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >> >>> `root' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >> >>> `bundle_path' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >> >>> `configure_gem_home' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >> >>> `configure_gem_home_and_path' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >> >>> `configure' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >> >>> `definition' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >> >>> `update' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >> >>> `run' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >> >>> `invoke_task' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >> >>> `dispatch' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >> >>> `start' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> >>> `block in ' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >> >>> `with_friendly_errors' >> >>> >> >>> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> >>> `' >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >> >>> >> >>> Any help is greatly appreciated. >> >>> >> >>> Regards >> >>> >> >>> James >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Foreman users" group. >> >> To unsubscribe from this group and stop receiving emails from it, send >> >> an >> >> email to foreman-user...@googlegroups.com. >> >> >> >> To post to this group, send email to forema...@googlegroups.com. >> >> Visit this group at http://groups.google.com/group/foreman-users. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> > >> > >> > -- >> > You received this message because you are subscribed to a topic in the >> > Google Groups "Foreman users" group. >> > To unsubscribe from this topic, visit >> > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >> > To unsubscribe from this group and all its topics, send an email to >> > foreman-user...@googlegroups.com. >> > To post to this group, send email to forema...@googlegroups.com. >> > Visit this group at http://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Foreman users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > >

Hey,

please try this:

cd /usr/share/foreman
mv Gemfile.in Gemfile
scl enable ruby193 "bundle install"
mv Gemfile Gemfile.in

and restart

Explanation: When Gemfile.in file is present, bundler_ext is activated
instead of bundler. You can switch between each other. Do not do "bundle
update" otherwise you "replace" dependencies installed by RPM with your
own ones.

We should be shipping the top plugins as RPMs/DEBs that would be great.
Not there yet :frowning:

LZ

··· > Could not locate Gemfile > Bundler::GemfileNotFound: Could not locate Gemfile > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in > `default_gemfile' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in > `default_gemfile' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in > `root' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in > `bundle_path' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in > `configure_gem_home' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in > `configure_gem_home_and_path' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in > `configure' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in > `definition' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in > `update' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in > `run' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in > `invoke_task' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in > `dispatch' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in > `start' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > `block in ' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in > `with_friendly_errors' > /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > `' > /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' > /opt/rh/ruby193/root/usr/bin/bundle:23:in `' > > > On 22 July 2013 07:47, Mateusz Kisielewski > wrote: > > Did you run scl enable ruby193 "bundle update" in foreman directory? > > > > W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 użytkownik jamese napisał: > >> > >> Hi Ohad, > >> > >> Foreman was definitely working before I started with the discovery > >> plugin. I am running passenger - I installed this on a plain CentOS > >> 6.4 box and followed the installation instructions from theforeman > >> manual. > >> I've restarted the httpd service and stopped foreman service (I > >> misunderstood how that bit worked). > >> > >> The gem looks to be installed: > >> > >> # rpm -qa | grep audited > >> ruby193-rubygem-audited-3.0.0-2.el6.noarch > >> ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch > >> > >> I've also removed the git part from the Gemfile.local.rb, same error :( > >> > >> On 21 July 2013 12:16, Ohad Levy wrote: > >> > > >> > > >> > On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote: > >> >> > >> >> Hi Ohad, > >> >> > >> >> Many thanks for your response. > >> >> > >> >> I have installed the gem in the scl environment and restarted foreman, > >> >> but > >> >> now foreman complains about missing audited-activecord. > >> > > >> > > >> > did foreman worked before that? can you try to verify that the audited > >> > gem > >> > in installed and not modified ? e.g. rpm -v ? > >> >> > >> >> > >> >> # scl enable ruby193 "gem install foreman_discovery" > >> >> Successfully installed foreman_discovery-1.0.0 > >> >> 1 gem installed > >> >> Installing ri documentation for foreman_discovery-1.0.0... > >> >> Installing RDoc documentation for foreman_discovery-1.0.0... > >> >> # service foreman restart > >> >> Restarting foreman rails app: [ OK ] > >> > > >> > > >> > are you not running using passenger? according to your trace you are... > >> > > >> > > >> >> > >> >> # > >> >> > >> >> I installed the audited-activerecord gem, but foreman is still > >> >> returning > >> >> an error about it being missing. > >> >> > >> >> # scl enable ruby193 "gem install audited-activerecord" > >> >> Successfully installed audited-activerecord-3.0.0 > >> >> 1 gem installed > >> >> Installing ri documentation for audited-activerecord-3.0.0... > >> >> Installing RDoc documentation for audited-activerecord-3.0.0... > >> >> # > >> >> > >> >> > >> >> Gem loading error: cannot load such file -- audited/activerecord > >> >> (RuntimeError) > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in > >> >> `strict_error' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in > >> >> `rescue in rescue in block in system_require' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in > >> >> `rescue in block in system_require' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in > >> >> `block in system_require' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in > >> >> `each' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in > >> >> `system_require' > >> >> /usr/share/foreman/config/application.rb:11:in `' > >> >> > >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> >> `require' > >> >> > >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> >> `require' > >> >> /usr/share/foreman/config/environment.rb:2:in `' > >> >> > >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> >> `require' > >> >> > >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > >> >> `require' > >> >> config.ru:3:in `block in ' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in > >> >> `instance_eval' > >> >> > >> >> > >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in > >> >> `initialize' > >> >> config.ru:1:in `new' > >> >> config.ru:1:in `' > >> >> > >> >> > >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in > >> >> `eval' > >> >> > >> >> > >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in > >> >> `preload_app' > >> >> > >> >> > >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in > >> >> `' > >> >> > >> >> > >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in > >> >> `' > >> >> > >> >> > >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in > >> >> `' > >> >> > >> >> > >> >> I've also added the gem to > >> >> /usr/share/foreman/bundler.d/Gemfile.local.rb: > >> >> > >> >> # cat bundler.d/Gemfile.local.rb > >> >> gem 'foreman_discovery', :git => > >> >> "https://github.com/theforeman/foreman_discovery.git" > >> >> # > >> >> > >> > you don't need git here if you installed the gem, afair bundler_ext does > >> > not > >> > support git ext. > >> > > >> > Ohad > >> > > >> >> > >> >> Any ideas? > >> >> > >> >> I'm a beginner when it comes to ruby and scl, so forgive me if I'm > >> >> missing > >> >> anything obvious. > >> >> > >> >> J > >> >> > >> >> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: > >> >>> > >> >>> Hi all, > >> >>> > >> >>> I've just installed foreman 1.2 on RHEL6 from the rpms available from > >> >>> the > >> >>> foreman repo. This is all working fine. > >> >>> > >> >>> Now I want to install the foreman_discovery plugin. > >> >>> > >> >>> As per the README, I've created a Gemfile.local.rb. It's not quite > >> >>> clear > >> >>> to me where this should be, so I've added it to > >> >>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since > >> >>> bundle > >> >>> was missing. > >> >>> > >> >>> "bundle update" returns the following error: > >> >>> > >> >>> Could not locate Gemfile > >> >>> Bundler::GemfileNotFound: Could not locate Gemfile > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in > >> >>> `default_gemfile' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in > >> >>> `default_gemfile' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in > >> >>> `root' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in > >> >>> `bundle_path' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in > >> >>> `configure_gem_home' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in > >> >>> `configure_gem_home_and_path' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in > >> >>> `configure' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in > >> >>> `definition' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in > >> >>> `update' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in > >> >>> `run' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in > >> >>> `invoke_task' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in > >> >>> `dispatch' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in > >> >>> `start' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > >> >>> `block in ' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in > >> >>> `with_friendly_errors' > >> >>> > >> >>> > >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in > >> >>> `' > >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' > >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' > >> >>> > >> >>> Any help is greatly appreciated. > >> >>> > >> >>> Regards > >> >>> > >> >>> James > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Foreman users" group. > >> >> To unsubscribe from this group and stop receiving emails from it, send > >> >> an > >> >> email to foreman-user...@googlegroups.com. > >> >> > >> >> To post to this group, send email to forema...@googlegroups.com. > >> >> Visit this group at http://groups.google.com/group/foreman-users. > >> >> For more options, visit https://groups.google.com/groups/opt_out. > >> >> > >> >> > >> > > >> > > >> > -- > >> > You received this message because you are subscribed to a topic in the > >> > Google Groups "Foreman users" group. > >> > To unsubscribe from this topic, visit > >> > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > >> > To unsubscribe from this group and all its topics, send an email to > >> > foreman-user...@googlegroups.com. > >> > To post to this group, send email to forema...@googlegroups.com. > >> > Visit this group at http://groups.google.com/group/foreman-users. > >> > For more options, visit https://groups.google.com/groups/opt_out. > >> > > >> > > > > > -- > > You received this message because you are subscribed to a topic in the > > Google Groups "Foreman users" group. > > To unsubscribe from this topic, visit > > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > > foreman-users+unsubscribe@googlegroups.com. > > To post to this group, send email to foreman-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > >


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Hi,

I've just tried this. Had to install mysql-devel and postgresql-devel
rpm's too.

Restarted httpd, but the same error persists about missing
audited-activerecord :frowning:

I may rebuild this box and start over, since it's probably a bit
confused by now.

··· On 22 July 2013 08:57, Lukas Zapletal wrote: > Hey, > > please try this: > > cd /usr/share/foreman > mv Gemfile.in Gemfile > scl enable ruby193 "bundle install" > mv Gemfile Gemfile.in > > and restart > > Explanation: When Gemfile.in file is present, bundler_ext is activated > instead of bundler. You can switch between each other. Do not do "bundle > update" otherwise you "replace" dependencies installed by RPM with your > own ones. > > We should be shipping the top plugins as RPMs/DEBs that would be great. > Not there yet :-( > > LZ > >> Could not locate Gemfile >> Bundler::GemfileNotFound: Could not locate Gemfile >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >> `default_gemfile' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >> `default_gemfile' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >> `root' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >> `bundle_path' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >> `configure_gem_home' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >> `configure_gem_home_and_path' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >> `configure' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >> `definition' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >> `update' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >> `run' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >> `invoke_task' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >> `dispatch' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >> `start' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> `block in ' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >> `with_friendly_errors' >> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> `' >> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >> >> >> On 22 July 2013 07:47, Mateusz Kisielewski >> wrote: >> > Did you run scl enable ruby193 "bundle update" in foreman directory? >> > >> > W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 użytkownik jamese napisał: >> >> >> >> Hi Ohad, >> >> >> >> Foreman was definitely working before I started with the discovery >> >> plugin. I am running passenger - I installed this on a plain CentOS >> >> 6.4 box and followed the installation instructions from theforeman >> >> manual. >> >> I've restarted the httpd service and stopped foreman service (I >> >> misunderstood how that bit worked). >> >> >> >> The gem looks to be installed: >> >> >> >> # rpm -qa | grep audited >> >> ruby193-rubygem-audited-3.0.0-2.el6.noarch >> >> ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch >> >> >> >> I've also removed the git part from the Gemfile.local.rb, same error :( >> >> >> >> On 21 July 2013 12:16, Ohad Levy wrote: >> >> > >> >> > >> >> > On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote: >> >> >> >> >> >> Hi Ohad, >> >> >> >> >> >> Many thanks for your response. >> >> >> >> >> >> I have installed the gem in the scl environment and restarted foreman, >> >> >> but >> >> >> now foreman complains about missing audited-activecord. >> >> > >> >> > >> >> > did foreman worked before that? can you try to verify that the audited >> >> > gem >> >> > in installed and not modified ? e.g. rpm -v ? >> >> >> >> >> >> >> >> >> # scl enable ruby193 "gem install foreman_discovery" >> >> >> Successfully installed foreman_discovery-1.0.0 >> >> >> 1 gem installed >> >> >> Installing ri documentation for foreman_discovery-1.0.0... >> >> >> Installing RDoc documentation for foreman_discovery-1.0.0... >> >> >> # service foreman restart >> >> >> Restarting foreman rails app: [ OK ] >> >> > >> >> > >> >> > are you not running using passenger? according to your trace you are... >> >> > >> >> > >> >> >> >> >> >> # >> >> >> >> >> >> I installed the audited-activerecord gem, but foreman is still >> >> >> returning >> >> >> an error about it being missing. >> >> >> >> >> >> # scl enable ruby193 "gem install audited-activerecord" >> >> >> Successfully installed audited-activerecord-3.0.0 >> >> >> 1 gem installed >> >> >> Installing ri documentation for audited-activerecord-3.0.0... >> >> >> Installing RDoc documentation for audited-activerecord-3.0.0... >> >> >> # >> >> >> >> >> >> >> >> >> Gem loading error: cannot load such file -- audited/activerecord >> >> >> (RuntimeError) >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in >> >> >> `strict_error' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in >> >> >> `rescue in rescue in block in system_require' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in >> >> >> `rescue in block in system_require' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in >> >> >> `block in system_require' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> >> >> `each' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >> >> >> `system_require' >> >> >> /usr/share/foreman/config/application.rb:11:in `' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> >> `require' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> >> `require' >> >> >> /usr/share/foreman/config/environment.rb:2:in `' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> >> `require' >> >> >> >> >> >> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >> >> >> `require' >> >> >> config.ru:3:in `block in ' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> >> >> `instance_eval' >> >> >> >> >> >> >> >> >> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >> >> >> `initialize' >> >> >> config.ru:1:in `new' >> >> >> config.ru:1:in `' >> >> >> >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> >> >> `eval' >> >> >> >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >> >> >> `preload_app' >> >> >> >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in >> >> >> `' >> >> >> >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in >> >> >> `' >> >> >> >> >> >> >> >> >> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in >> >> >> `' >> >> >> >> >> >> >> >> >> I've also added the gem to >> >> >> /usr/share/foreman/bundler.d/Gemfile.local.rb: >> >> >> >> >> >> # cat bundler.d/Gemfile.local.rb >> >> >> gem 'foreman_discovery', :git => >> >> >> "https://github.com/theforeman/foreman_discovery.git" >> >> >> # >> >> >> >> >> > you don't need git here if you installed the gem, afair bundler_ext does >> >> > not >> >> > support git ext. >> >> > >> >> > Ohad >> >> > >> >> >> >> >> >> Any ideas? >> >> >> >> >> >> I'm a beginner when it comes to ruby and scl, so forgive me if I'm >> >> >> missing >> >> >> anything obvious. >> >> >> >> >> >> J >> >> >> >> >> >> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: >> >> >>> >> >> >>> Hi all, >> >> >>> >> >> >>> I've just installed foreman 1.2 on RHEL6 from the rpms available from >> >> >>> the >> >> >>> foreman repo. This is all working fine. >> >> >>> >> >> >>> Now I want to install the foreman_discovery plugin. >> >> >>> >> >> >>> As per the README, I've created a Gemfile.local.rb. It's not quite >> >> >>> clear >> >> >>> to me where this should be, so I've added it to >> >> >>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since >> >> >>> bundle >> >> >>> was missing. >> >> >>> >> >> >>> "bundle update" returns the following error: >> >> >>> >> >> >>> Could not locate Gemfile >> >> >>> Bundler::GemfileNotFound: Could not locate Gemfile >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >> >> >>> `default_gemfile' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >> >> >>> `default_gemfile' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >> >> >>> `root' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >> >> >>> `bundle_path' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >> >> >>> `configure_gem_home' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >> >> >>> `configure_gem_home_and_path' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >> >> >>> `configure' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >> >> >>> `definition' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >> >> >>> `update' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >> >> >>> `run' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >> >> >>> `invoke_task' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >> >> >>> `dispatch' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >> >> >>> `start' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> >> >>> `block in ' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >> >> >>> `with_friendly_errors' >> >> >>> >> >> >>> >> >> >>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >> >> >>> `' >> >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >> >> >>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >> >> >>> >> >> >>> Any help is greatly appreciated. >> >> >>> >> >> >>> Regards >> >> >>> >> >> >>> James >> >> >> >> >> >> -- >> >> >> You received this message because you are subscribed to the Google >> >> >> Groups >> >> >> "Foreman users" group. >> >> >> To unsubscribe from this group and stop receiving emails from it, send >> >> >> an >> >> >> email to foreman-user...@googlegroups.com. >> >> >> >> >> >> To post to this group, send email to forema...@googlegroups.com. >> >> >> Visit this group at http://groups.google.com/group/foreman-users. >> >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > You received this message because you are subscribed to a topic in the >> >> > Google Groups "Foreman users" group. >> >> > To unsubscribe from this topic, visit >> >> > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >> >> > To unsubscribe from this group and all its topics, send an email to >> >> > foreman-user...@googlegroups.com. >> >> > To post to this group, send email to forema...@googlegroups.com. >> >> > Visit this group at http://groups.google.com/group/foreman-users. >> >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> > >> >> > >> > >> > -- >> > You received this message because you are subscribed to a topic in the >> > Google Groups "Foreman users" group. >> > To unsubscribe from this topic, visit >> > https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >> > To unsubscribe from this group and all its topics, send an email to >> > foreman-users+unsubscribe@googlegroups.com. >> > To post to this group, send email to foreman-users@googlegroups.com. >> > Visit this group at http://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >> -- >> You received this message because you are subscribed to the Google Groups "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > Later, > > Lukas "lzap" Zapletal > irc: lzap #theforeman > > -- > You received this message because you are subscribed to a topic in the Google Groups "Foreman users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > >

I can't reproduce the audited-activerecord issue, but certainly there
was a problem in the plugin that caused Rails to get installed a second
time. Greg's going to release 1.0.1 hopefully this week with the fix.

You shouldn't need to change your Gemfile or move to bundler to do this,
and I really would not recommend doing so when using our packages.

It is just a case of adding the ~foreman/bundler.d/Gemfile.local.rb file
containing:

gem 'foreman_discovery'

Ensure nokogiri's installed first with:

yum install ruby193-rubygem-nokogiri

And then run:

scl enable ruby193 'gem install foreman_discovery'

Though please wait until 1.0.1's released so it doesn't pull down Rails
too. If you have done this already then something like this worked for
me to remove the duplicate gems… http://pastie.org/8164163

As mentioned, we're working on packaging this and other plugins to make
installation easier.

··· -- Dominic Cleal Red Hat Engineering

On 22/07/13 14:51, James Eckersall wrote:

Hi,

I’ve just tried this. Had to install mysql-devel and postgresql-devel
rpm’s too.

Restarted httpd, but the same error persists about missing
audited-activerecord :frowning:

I may rebuild this box and start over, since it’s probably a bit
confused by now.

On 22 July 2013 08:57, Lukas Zapletal lzap@redhat.com wrote:

Hey,

please try this:

cd /usr/share/foreman
mv Gemfile.in Gemfile
scl enable ruby193 "bundle install"
mv Gemfile Gemfile.in

and restart

Explanation: When Gemfile.in file is present, bundler_ext is activated
instead of bundler. You can switch between each other. Do not do “bundle
update” otherwise you “replace” dependencies installed by RPM with your
own ones.

We should be shipping the top plugins as RPMs/DEBs that would be great.
Not there yet :frowning:

LZ

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
default_gemfile' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:indefault_gemfile’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
root' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:inbundle_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
configure_gem_home' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:inconfigure_gem_home_and_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
configure' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:indefinition’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
update' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:inrun’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
invoke_task' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:indispatch’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
start' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:inblock in <top (required)>’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
with_friendly_errors' /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in<top (required)>’
/opt/rh/ruby193/root/usr/bin/bundle:23:in load' /opt/rh/ruby193/root/usr/bin/bundle:23:in

On 22 July 2013 07:47, Mateusz Kisielewski >>> kisielewski.mateusz@gmail.com wrote:

Did you run scl enable ruby193 “bundle update” in foreman directory?

W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 u�ytkownik jamese napisa�:

Hi Ohad,

Foreman was definitely working before I started with the discovery
plugin. I am running passenger - I installed this on a plain CentOS
6.4 box and followed the installation instructions from theforeman
manual.
I’ve restarted the httpd service and stopped foreman service (I
misunderstood how that bit worked).

The gem looks to be installed:

rpm -qa | grep audited

ruby193-rubygem-audited-3.0.0-2.el6.noarch
ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch

I’ve also removed the git part from the Gemfile.local.rb, same error :frowning:

On 21 July 2013 12:16, Ohad Levy ohad...@gmail.com wrote:

On Sun, Jul 21, 2013 at 2:07 PM, jamese james.e...@gmail.com wrote:

Hi Ohad,

Many thanks for your response.

I have installed the gem in the scl environment and restarted foreman,
but
now foreman complains about missing audited-activecord.

did foreman worked before that? can you try to verify that the audited
gem
in installed and not modified ? e.g. rpm -v ?

scl enable ruby193 “gem install foreman_discovery”

Successfully installed foreman_discovery-1.0.0
1 gem installed
Installing ri documentation for foreman_discovery-1.0.0…
Installing RDoc documentation for foreman_discovery-1.0.0…

service foreman restart

Restarting foreman rails app: [ OK ]

are you not running using passenger? according to your trace you are…

I installed the audited-activerecord gem, but foreman is still
returning
an error about it being missing.

scl enable ruby193 “gem install audited-activerecord”

Successfully installed audited-activerecord-3.0.0
1 gem installed
Installing ri documentation for audited-activerecord-3.0.0…
Installing RDoc documentation for audited-activerecord-3.0.0…

Gem loading error: cannot load such file – audited/activerecord
(RuntimeError)

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in
`strict_error’

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in
`rescue in rescue in block in system_require’

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in
`rescue in block in system_require’

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in
`block in system_require’

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
`each’

/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
system_require' /usr/share/foreman/config/application.rb:11:in<top (required)>’

/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
`require’

/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require' /usr/share/foreman/config/environment.rb:2:in<top (required)>’

/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
`require’

/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require' config.ru:3:inblock in ’

/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`instance_eval’

/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in
initialize' config.ru:1:innew’
config.ru:1:in `’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`eval’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`preload_app’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in
`module:App

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in
`module:PhusionPassenger

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in
`’

I’ve also added the gem to
/usr/share/foreman/bundler.d/Gemfile.local.rb:

cat bundler.d/Gemfile.local.rb

gem ‘foreman_discovery’, :git =>
https://github.com/theforeman/foreman_discovery.git

you don’t need git here if you installed the gem, afair bundler_ext does
not
support git ext.

Ohad

Any ideas?

I’m a beginner when it comes to ruby and scl, so forgive me if I’m
missing
anything obvious.

J

On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote:

Hi all,

I’ve just installed foreman 1.2 on RHEL6 from the rpms available from
the
foreman repo. This is all working fine.

Now I want to install the foreman_discovery plugin.

As per the README, I’ve created a Gemfile.local.rb. It’s not quite
clear
to me where this should be, so I’ve added it to
"/usr/share/foreman/bundler.d", and run “gem install bundle” since
bundle
was missing.

“bundle update” returns the following error:

Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
`default_gemfile’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in
`default_gemfile’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
`root’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in
`bundle_path’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
`configure_gem_home’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in
`configure_gem_home_and_path’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
`configure’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in
`definition’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
`update’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in
`run’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
`invoke_task’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in
`dispatch’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
`start’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in
`block in <top (required)>’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
`with_friendly_errors’

/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in
<top (required)>' /opt/rh/ruby193/root/usr/bin/bundle:23:inload’
/opt/rh/ruby193/root/usr/bin/bundle:23:in `’

Any help is greatly appreciated.

Regards

James


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to foreman-user...@googlegroups.com.

To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman


You received this message because you are subscribed to a topic in the Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks, I really appreciate the help from everyone.

I'll rebuild my box, wait for 1.0.1 and try again :slight_smile:

··· On 22 July 2013 15:18, Dominic Cleal wrote: > I can't reproduce the audited-activerecord issue, but certainly there > was a problem in the plugin that caused Rails to get installed a second > time. Greg's going to release 1.0.1 hopefully this week with the fix. > > You shouldn't need to change your Gemfile or move to bundler to do this, > and I really would not recommend doing so when using our packages. > > It is just a case of adding the ~foreman/bundler.d/Gemfile.local.rb file > containing: > > gem 'foreman_discovery' > > Ensure nokogiri's installed first with: > > yum install ruby193-rubygem-nokogiri > > And then run: > > scl enable ruby193 'gem install foreman_discovery' > > Though please wait until 1.0.1's released so it doesn't pull down Rails > too. If you have done this already then something like this worked for > me to remove the duplicate gems.. http://pastie.org/8164163 > > As mentioned, we're working on packaging this and other plugins to make > installation easier. > > -- > Dominic Cleal > Red Hat Engineering > > On 22/07/13 14:51, James Eckersall wrote: >> Hi, >> >> I've just tried this. Had to install mysql-devel and postgresql-devel >> rpm's too. >> >> Restarted httpd, but the same error persists about missing >> audited-activerecord :( >> >> I may rebuild this box and start over, since it's probably a bit >> confused by now. >> >> On 22 July 2013 08:57, Lukas Zapletal wrote: >>> Hey, >>> >>> please try this: >>> >>> cd /usr/share/foreman >>> mv Gemfile.in Gemfile >>> scl enable ruby193 "bundle install" >>> mv Gemfile Gemfile.in >>> >>> and restart >>> >>> Explanation: When Gemfile.in file is present, bundler_ext is activated >>> instead of bundler. You can switch between each other. Do not do "bundle >>> update" otherwise you "replace" dependencies installed by RPM with your >>> own ones. >>> >>> We should be shipping the top plugins as RPMs/DEBs that would be great. >>> Not there yet :-( >>> >>> LZ >>> >>>> Could not locate Gemfile >>>> Bundler::GemfileNotFound: Could not locate Gemfile >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >>>> `default_gemfile' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >>>> `default_gemfile' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >>>> `root' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >>>> `bundle_path' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >>>> `configure_gem_home' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >>>> `configure_gem_home_and_path' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >>>> `configure' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >>>> `definition' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >>>> `update' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >>>> `run' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >>>> `invoke_task' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >>>> `dispatch' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >>>> `start' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>>> `block in ' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >>>> `with_friendly_errors' >>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>>> `' >>>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >>>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >>>> >>>> >>>> On 22 July 2013 07:47, Mateusz Kisielewski >>>> wrote: >>>>> Did you run scl enable ruby193 "bundle update" in foreman directory? >>>>> >>>>> W dniu niedziela, 21 lipca 2013 13:24:24 UTC+2 użytkownik jamese napisał: >>>>>> >>>>>> Hi Ohad, >>>>>> >>>>>> Foreman was definitely working before I started with the discovery >>>>>> plugin. I am running passenger - I installed this on a plain CentOS >>>>>> 6.4 box and followed the installation instructions from theforeman >>>>>> manual. >>>>>> I've restarted the httpd service and stopped foreman service (I >>>>>> misunderstood how that bit worked). >>>>>> >>>>>> The gem looks to be installed: >>>>>> >>>>>> # rpm -qa | grep audited >>>>>> ruby193-rubygem-audited-3.0.0-2.el6.noarch >>>>>> ruby193-rubygem-audited-activerecord-3.0.0-2.el6.noarch >>>>>> >>>>>> I've also removed the git part from the Gemfile.local.rb, same error :( >>>>>> >>>>>> On 21 July 2013 12:16, Ohad Levy wrote: >>>>>>> >>>>>>> >>>>>>> On Sun, Jul 21, 2013 at 2:07 PM, jamese wrote: >>>>>>>> >>>>>>>> Hi Ohad, >>>>>>>> >>>>>>>> Many thanks for your response. >>>>>>>> >>>>>>>> I have installed the gem in the scl environment and restarted foreman, >>>>>>>> but >>>>>>>> now foreman complains about missing audited-activecord. >>>>>>> >>>>>>> >>>>>>> did foreman worked before that? can you try to verify that the audited >>>>>>> gem >>>>>>> in installed and not modified ? e.g. rpm -v ? >>>>>>>> >>>>>>>> >>>>>>>> # scl enable ruby193 "gem install foreman_discovery" >>>>>>>> Successfully installed foreman_discovery-1.0.0 >>>>>>>> 1 gem installed >>>>>>>> Installing ri documentation for foreman_discovery-1.0.0... >>>>>>>> Installing RDoc documentation for foreman_discovery-1.0.0... >>>>>>>> # service foreman restart >>>>>>>> Restarting foreman rails app: [ OK ] >>>>>>> >>>>>>> >>>>>>> are you not running using passenger? according to your trace you are... >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> # >>>>>>>> >>>>>>>> I installed the audited-activerecord gem, but foreman is still >>>>>>>> returning >>>>>>>> an error about it being missing. >>>>>>>> >>>>>>>> # scl enable ruby193 "gem install audited-activerecord" >>>>>>>> Successfully installed audited-activerecord-3.0.0 >>>>>>>> 1 gem installed >>>>>>>> Installing ri documentation for audited-activerecord-3.0.0... >>>>>>>> Installing RDoc documentation for audited-activerecord-3.0.0... >>>>>>>> # >>>>>>>> >>>>>>>> >>>>>>>> Gem loading error: cannot load such file -- audited/activerecord >>>>>>>> (RuntimeError) >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in >>>>>>>> `strict_error' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in >>>>>>>> `rescue in rescue in block in system_require' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in >>>>>>>> `rescue in block in system_require' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in >>>>>>>> `block in system_require' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >>>>>>>> `each' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in >>>>>>>> `system_require' >>>>>>>> /usr/share/foreman/config/application.rb:11:in `' >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >>>>>>>> `require' >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >>>>>>>> `require' >>>>>>>> /usr/share/foreman/config/environment.rb:2:in `' >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >>>>>>>> `require' >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in >>>>>>>> `require' >>>>>>>> config.ru:3:in `block in ' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >>>>>>>> `instance_eval' >>>>>>>> >>>>>>>> >>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in >>>>>>>> `initialize' >>>>>>>> config.ru:1:in `new' >>>>>>>> config.ru:1:in `' >>>>>>>> >>>>>>>> >>>>>>>> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >>>>>>>> `eval' >>>>>>>> >>>>>>>> >>>>>>>> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in >>>>>>>> `preload_app' >>>>>>>> >>>>>>>> >>>>>>>> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in >>>>>>>> `' >>>>>>>> >>>>>>>> >>>>>>>> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in >>>>>>>> `' >>>>>>>> >>>>>>>> >>>>>>>> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in >>>>>>>> `' >>>>>>>> >>>>>>>> >>>>>>>> I've also added the gem to >>>>>>>> /usr/share/foreman/bundler.d/Gemfile.local.rb: >>>>>>>> >>>>>>>> # cat bundler.d/Gemfile.local.rb >>>>>>>> gem 'foreman_discovery', :git => >>>>>>>> "https://github.com/theforeman/foreman_discovery.git" >>>>>>>> # >>>>>>>> >>>>>>> you don't need git here if you installed the gem, afair bundler_ext does >>>>>>> not >>>>>>> support git ext. >>>>>>> >>>>>>> Ohad >>>>>>> >>>>>>>> >>>>>>>> Any ideas? >>>>>>>> >>>>>>>> I'm a beginner when it comes to ruby and scl, so forgive me if I'm >>>>>>>> missing >>>>>>>> anything obvious. >>>>>>>> >>>>>>>> J >>>>>>>> >>>>>>>> On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote: >>>>>>>>> >>>>>>>>> Hi all, >>>>>>>>> >>>>>>>>> I've just installed foreman 1.2 on RHEL6 from the rpms available from >>>>>>>>> the >>>>>>>>> foreman repo. This is all working fine. >>>>>>>>> >>>>>>>>> Now I want to install the foreman_discovery plugin. >>>>>>>>> >>>>>>>>> As per the README, I've created a Gemfile.local.rb. It's not quite >>>>>>>>> clear >>>>>>>>> to me where this should be, so I've added it to >>>>>>>>> "/usr/share/foreman/bundler.d", and run "gem install bundle" since >>>>>>>>> bundle >>>>>>>>> was missing. >>>>>>>>> >>>>>>>>> "bundle update" returns the following error: >>>>>>>>> >>>>>>>>> Could not locate Gemfile >>>>>>>>> Bundler::GemfileNotFound: Could not locate Gemfile >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in >>>>>>>>> `default_gemfile' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in >>>>>>>>> `default_gemfile' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in >>>>>>>>> `root' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in >>>>>>>>> `bundle_path' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in >>>>>>>>> `configure_gem_home' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in >>>>>>>>> `configure_gem_home_and_path' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in >>>>>>>>> `configure' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in >>>>>>>>> `definition' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in >>>>>>>>> `update' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in >>>>>>>>> `run' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in >>>>>>>>> `invoke_task' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in >>>>>>>>> `dispatch' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in >>>>>>>>> `start' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>>>>>>>> `block in ' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in >>>>>>>>> `with_friendly_errors' >>>>>>>>> >>>>>>>>> >>>>>>>>> /opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in >>>>>>>>> `' >>>>>>>>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `load' >>>>>>>>> /opt/rh/ruby193/root/usr/bin/bundle:23:in `' >>>>>>>>> >>>>>>>>> Any help is greatly appreciated. >>>>>>>>> >>>>>>>>> Regards >>>>>>>>> >>>>>>>>> James >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups >>>>>>>> "Foreman users" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>>>>> an >>>>>>>> email to foreman-user...@googlegroups.com. >>>>>>>> >>>>>>>> To post to this group, send email to forema...@googlegroups.com. >>>>>>>> Visit this group at http://groups.google.com/group/foreman-users. >>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to a topic in the >>>>>>> Google Groups "Foreman users" group. >>>>>>> To unsubscribe from this topic, visit >>>>>>> https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>> foreman-user...@googlegroups.com. >>>>>>> To post to this group, send email to forema...@googlegroups.com. >>>>>>> Visit this group at http://groups.google.com/group/foreman-users. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "Foreman users" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> foreman-users+unsubscribe@googlegroups.com. >>>>> To post to this group, send email to foreman-users@googlegroups.com. >>>>> Visit this group at http://groups.google.com/group/foreman-users. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups "Foreman users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >>>> To post to this group, send email to foreman-users@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/foreman-users. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>> >>> -- >>> Later, >>> >>> Lukas "lzap" Zapletal >>> irc: lzap #theforeman >>> >>> -- >>> You received this message because you are subscribed to a topic in the Google Groups "Foreman users" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com. >>> To post to this group, send email to foreman-users@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >> > > -- > You received this message because you are subscribed to a topic in the Google Groups "Foreman users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe. > To unsubscribe from this group and all its topics, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/gr