vagrant/templates/provisioners/chef_solo/solo.erb

52 lines
1.3 KiB
Plaintext
Raw Normal View History

require 'chef/version_constraint'
<% if node_name %>
node_name "<%= node_name %>"
<% end %>
file_cache_path "<%= file_cache_path %>"
file_backup_path "<%= file_backup_path %>"
cookbook_path <%= cookbooks_path.inspect %>
<% if roles_path %>
if Chef::VersionConstraint.new("< 11.8.0").include?(Chef::VERSION)
role_path <%= roles_path.first.inspect %>
else
role_path <%= roles_path.inspect %>
end
<% end %>
log_level <%= log_level.inspect %>
verbose_logging <%= verbose_logging.inspect %>
encrypted_data_bag_secret <%= encrypted_data_bag_secret.inspect %>
<% if data_bags_path -%>
data_bag_path <%= data_bags_path.inspect %>
<% end %>
<% if recipe_url -%>
recipe_url "<%= recipe_url %>"
<% end -%>
<% if environments_path %>
environment_path <%= environments_path.inspect %>
<% end -%>
<% if environment %>
environment "<%= environment %>"
<% end -%>
http_proxy <%= http_proxy.inspect %>
http_proxy_user <%= http_proxy_user.inspect %>
http_proxy_pass <%= http_proxy_pass.inspect %>
https_proxy <%= https_proxy.inspect %>
https_proxy_user <%= https_proxy_user.inspect %>
https_proxy_pass <%= https_proxy_pass.inspect %>
no_proxy <%= no_proxy.inspect %>
<% if formatter %>
add_formatter "<%= formatter %>"
<% end %>
<% if custom_configuration -%>
Chef::Config.from_file "<%= custom_configuration %>"
<% end -%>