Problem:
Hello,
I’m trying to connect my foreman instance to my phpipam in order to use it as external IPAM, I saw this post about external IPAM being merged into core feature and tried following the official documentation for plugin install but after installing gem file from rubygems.org and adding Gemfile.local.rb and reloading foreman service I have an error (log below).
I’m not sure if I’m doing something wrong or if there is a compatibility issue as I see that the plugin was not much updated since 2 years, may I ask for some help with this setup ?
Expected outcome:
Being able to use phpipam as external IPAM
Foreman and Proxy versions:
Foreman 3.4.0
Foreman and Proxy plugin versions:
phpipam 1.5
smart_proxy_ipam 0.1.4
Distribution and version:
Other relevant data:
systemd[1]: Starting Foreman...
foreman[82903]: /usr/share/gems/gems/bundler-2.2.24/lib/bundler/dsl.rb:266:in `method_missing': (Bundler::Dsl::DSLError)
foreman[82903]: [!] There was an error parsing `Gemfile.in`: Undefined local variable or method `smart_proxy_ipam' for Gemfile. Bundler c>
foreman[82903]: # from /usr/share/foreman/Gemfile.in:62
foreman[82903]: # -------------------------------------------
foreman[82903]: # Dir["#{File.dirname(FOREMAN_GEMFILE)}/bundler.d/*.rb"].each do |bundle|
foreman[82903]: > instance_eval(Bundler.read_file(bundle))
foreman[82903]: # end
foreman[82903]: # -------------------------------------------
foreman[82903]: from (eval):1:in `block in eval_gemfile'
foreman[82903]: from /usr/share/foreman/Gemfile.in:62:in `instance_eval'
foreman[82903]: from /usr/share/foreman/Gemfile.in:62:in `block in eval_gemfile'
foreman[82903]: from /usr/share/foreman/Gemfile.in:61:in `each'
foreman[82903]: from /usr/share/foreman/Gemfile.in:61:in `eval_gemfile'
foreman[82903]: from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/dsl.rb:47:in `instance_eval'
foreman[82903]: from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/dsl.rb:47:in `eval_gemfile'
foreman[82903]: from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/dsl.rb:12:in `evaluate'
foreman[82903]: from /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/gemfile.rb:46:in `parse'
foreman[82903]: from /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
foreman[82903]: from /usr/share/foreman/config/application.rb:36:in `<top (required)>'
foreman[82903]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
foreman[82903]: from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
foreman[82903]: from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
foreman[82903]: from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:138:in `block in perform'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `tap'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `perform'
foreman[82903]: from /usr/share/gems/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
foreman[82903]: from /usr/share/gems/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
foreman[82903]: from /usr/share/gems/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/command/base.rb:69:in `perform'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/command.rb:48:in `invoke'
foreman[82903]: from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands.rb:18:in `<top (required)>'
foreman[82903]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `require'
foreman[82903]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `rescue in require'
foreman[82903]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:147:in `require'
foreman[82903]: from /usr/share/foreman/bin/rails:9:in `<main>'