Hi John,
In this section:
template "createfile" do
path "/users/threezerous/cookbooks/basic/templates/default"
source "createfile.erb"
owner "root"
group "root"
mode "0644"
end
try removing the `path` and `source` altogether, rather in the
`template` title, point to the actual file contexts you'd want, like
so:
template "/tmp/createfile" do
owner "root"
group "root"
mode "0644"
end
And the contents of the createfile.erb should be the thing you want to
exist, not further Chef statements:
C:\Users\threezerous\cookbooks\basic\templates\default\createfile.erb:
<%=
node.name %> is my name, and Chef is my game.
After a Chef run, the `/tmp/createfile` should contain the node's name
replaced in the string.
You might want to run through the NTP use case on
learnchef.com - it
uses a templating example. Somewhat less confusing than reading the
'template' docs -
http://docs.opscode.com/essentials_cookbook_templates.html
-M
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
vagrant-up+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>