Создание папки в windows с помощью шеф-повара
Код:
directory node['soft_packname']['source_path'] do
action :create
recursive true
end
Атрибут:
default['soft_packname']['source_path'] = 'C:\nscpsource'
Но я ошибаюсь, когда запускаю chef-client на этом ресурсе / рецепте.
Chef Client failed. 0 resources updated in 08 seconds
[2018-04-06T18:10:54+05:30] FATAL: Stacktrace dumped to c:/opscode/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out
[2018-04-06T18:10:54+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-04-06T18:10:54+05:30] FATAL: NoMethodError: undefined method `[]' for nil:NilClass