Sha256: b876002997e15446f3ab5d3d484f5f908895fc693877fd77b9786202df7fd797

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

# Policyfile.rb - Describe how you want Chef to build your system.
#
# For more information on the Policyfile feature, visit
# https://docs.chef.io/policyfile.html

# 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

4 entries across 4 versions & 2 rubygems

Version Path
chef-dk-3.11.3 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb
chef-dk-3.10.1 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb
galvanize-0.1.2 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb
chef-dk-3.0.36 lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb