-
Notifications
You must be signed in to change notification settings - Fork 102
Description
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 method
eq' 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