Skip to content

tomslabs/local_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This cookbook provides the local_template resource. It's identical to the template resource, except the following caveeats:

  • It takes the template from an absolute path on the host
  • It does not include the platform/host resolution, so the same template is used everywhere.

Compatibility

The cookbook and resource has been tested with chef-client 11.8.0. The code is based on chef-client 11 sources.

Usage

See the included example.rb recipe.

local_template "/tmp/hostname" do
  source "/tmp/hostname.erb"
  variables :hostname => node[:fqdn]
end

assuming you already have a file /tmp/hostname.erb on your host.

About

Provides chef cookbook for local_template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages