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' –