Project

General

Profile

Actions

Bug #5

closed

rake puppet:import:puppet_classes error.

Added by Udo Waechter over 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
External Nodes
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,
nice work with foreman.

I try to do: rake puppet:import:puppet_classes from http://theforeman.org/wiki/foreman/External_Nodes

I did all the installation and setup steps, I use storeconfigs with mysql. This works fine.

When running "rake puppet:import:puppet_classes RAILS_ENV=production" I get:

@rake puppet:import:puppet_classes --trace RAILS_ENV=production
(in /home/admin/foreman)
  • Invoke puppet:import:puppet_classes (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute puppet:import:puppet_classes
    rake aborted!
    private method `split' called for nil:NilClass
    /home/admin/foreman/app/models/environment.rb:37:in `importClasses'
    /home/admin/foreman/app/models/environment.rb:33:in `each_pair'
    /home/admin/foreman/app/models/environment.rb:33:in `importClasses'
    /home/admin/foreman/lib/tasks/puppet.rake:44
    /usr/lib/ruby/1.8/rake.rb:636:in `call'
    /usr/lib/ruby/1.8/rake.rb:636:in `execute'
    /usr/lib/ruby/1.8/rake.rb:631:in `each'
    /usr/lib/ruby/1.8/rake.rb:631:in `execute'
    /usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/rake.rb:583:in `invoke'
    /usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
    /usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:2029:in `each'
    /usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
    /usr/lib/ruby/1.8/rake.rb:2001:in `run'
    /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/1.8/rake.rb:1998:in `run'
    /usr/bin/rake:28
    @

@
dpkg -l rake ruby puppet facter ruby1.8
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description
+++-===================-===================-======================================================
ii facter 1.5.6-2 a library for retrieving facts from operating systems
ii puppet 0.24.8-2 centralised configuration management for networks
ii rake 0.8.7-1 a ruby build program
ii ruby 4.2 An interpreter of object-oriented scripting language R
ii ruby1.8 1.8.7.72-3lenny1 Interpreter of object-oriented scripting language Ruby
@

Any clues where the problem could be?
Thanks,
udo

Actions

Also available in: Atom PDF