0
我有以下佈局:如何從文件中加載屬性chefspec節點
attributes/default.rb
recipes/my_recipe.rb
spec/unit/recipes/my_recipe_spec.rb
在屬性的文件我有很多的共同設置喜歡
default['framework']['folder']['lib'] = '/usr/lib/fwrk'
我想用他們在我的chefspec,像
it 'install the lib if there are changes' do
lib_path = chef_run.node['framework']['folder']['lib']
puts(lib_path)
end
我怎麼能包含這個文件從SoloRunner/ServerRunner我的節點?
是的,我忘了在訪問節點之前運行'converge' –