Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ironfan 6.1.5 - <top (required)>': undefined method eq' for main:Object (NoMethodError) #351

Open
moogoos opened this issue Apr 30, 2014 · 0 comments

Comments

@moogoos
Copy link

moogoos commented Apr 30, 2014

I am testing out Ironfan 6.1.5 which looks to introduce the concept of realms, over 4.x which I came from. Looks pretty pretty cool.

Env:
centos 6.5 64bit
chef 10.28.2
ruby 1.9.3-p545
rubygems 2.2.2
ironfan 6.1.5
ohai 6.22.0

Using this guide:

https://github.com/infochimps-labs/ironfan/blob/master/NOTES-REALM.md

The issue I am having is:

realms/nuts.rb

Ironfan.realm(:nuts) do
environment :test

cluster(:test) do

facet(:base) do
  environment :test
end

end
end

base_facet = Ironfan.realm(:nuts).cluster(:test).facet(:base)
base_facet.environment.should eq(:test)
base_facet.run_list.should include_roles(:systemwide)

DEBUG: Using configuration from /ironfan-homebase/.chef/knife.rb

no realm-specific Gemfile found. using default Gemfile. << I can’t find any docs on how to create a realm specific Gemfile

Inventorying servers in test realm, all clusters, all facets, all servers
INFO: Looking for dsl definition in ["/ironfan-homebase/realms"]
INFO: Loading dsl file /ironfan-homebase/realms/nuts.rb
ironfan-homebase/realms/nuts.rb:14:in <top (required)>': undefined methodeq' for main:Object (NoMethodError)

Shouldn’t it inventory servers in nuts realm? It seems it’s “defaulting to the environment which I know is the default if the realm isn't defined.

In my clusters/test.rb I have the realm defined anyway.

Ironfan.cluster 'test' do

environment :test
realm_name :nuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant