Sha256: 535b32542234821b16af8e5610fb9080d3ac5f8c39129cb1ade362c9b0c23108

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

# Policyfile.rb - Describe how you want Chef to build your system.
#
# For more information on the Policyfile feature, visit
# https://github.com/chef/chef-dk/blob/master/POLICYFILE_README.md

# A name that describes what the system you're building with Chef does.
name "<%= policy_name %>"

<% if include_chef_repo_source %>
# This lets you source cookbooks from your chef-repo.
default_source :chef_repo, "../"

<% end -%>
# Where to find external cookbooks:
default_source :supermarket

# run_list: chef-client will run these recipes in the order specified.
run_list "<%= policy_run_list %>"

# Specify a custom source for a single cookbook:
<% if policy_local_cookbook.nil? %>
# cookbook "example_cookbook", path: "../cookbooks/example_cookbook"
<% else %>
cookbook "<%= cookbook_name %>", path: "."
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chef-dk-0.17.17 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb
chef-dk-0.16.28 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb
chef-dk-0.14.25 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb