- From: Jesse Campbell <
>
- To:
- Subject: [chef] Re: Dynamic template path.
- Date: Tue, 22 May 2012 14:26:29 -0400
can we see a little more of your recipe? I do something similar in my
recipes without issue.
-Jesse
On Tue, May 22, 2012 at 2:09 PM,
<
>
wrote:
>
I need to create a template for network scripts, eg:
>
>
template "/etc/sysconfig/network-scripts/ifcfg-xxx" do
>
.
>
end
>
>
Where "xxx" is specified in either default or override attributes. I have
>
tried:
>
>
template "/etc/sysconfig/network-scripts/ifcfg-xxxi#{node['xxx']}" do
>
template "/etc/sysconfig/network-scripts/ifcfg-" + node['xxx'] do
>
>
path = "/etc/sysconfig/network-scripts/ifcfg-" + node['xxx']
>
template path do
>
>
but all give knife upload errors of the form:
>
FATAL:
>
/hepuser/crlb/Git/chef-repo/cookbooks/nimbus/recipes/KVM_VMM_control_node.rb:46:
>
syntax error, unexpected tIDENTIFIER, expecting ']'
>
>
Suggestions please.
Archive powered by MHonArc 2.6.16.