Skip to content

danielsdeleo/partials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Partials

This is a Chef cookbook to demonstrate the new template partials feature in Chef 11.0.

It contains just a single template resource and a ruby block to print the result.

Most of the action happens in the template files themselves. The top-level template is demo.txt.erb; it shows partial template usage with a brief explanation of what's going on with each example. For a more in-depth explanation of partial templates, see the in-line API docs.

Running It

This cookbook doesn't have any real-world use beyond demonstrating the partial template feature. If you'd like to download it and play around:

$ mkdir /tmp/cookbooks
$ cd /tmp/cookbooks
$ git clone CLONE_URL
$ echo 'cookbook_path "/tmp/cookbooks"' >> /tmp/solo.rb
$ chef-solo -c /tmp/solo.rb -o partials

About

Demo of Template Partials in Chef 11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages