Bug #4805
$name gets interpolated incorrectly
| Status: | Duplicate | Start date: | 09/19/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
| Votes: | 0 |
Description
Hello!
When using
ns_server::website { "tech.schottelius.org":
owner => nico,
content => template("ns_server/tech.schottelius.org.erb"),
}
with the template
server {
# Only bind on the reserved IP address
listen <%= ns_server_web_ipn %>:80;
server_name <%= name %>;
location / {
rewrite .* http://www.nico.schottelius.org/about/computers/ permanent;
}
}
it results into
server {
# Only bind on the reserved IP address
listen 77.109.138.216:80;
server_name Ns_server::Websites;
location / {
rewrite .* http://www.nico.schottelius.org/about/computers/ permanent;
}
}
Interestingly, it works for other defines, in which I do not specify the content in the ns_server::website define:
ns_server::website { "www.nico.schottelius.org": owner => nico, }
Version on master and client is 2.6.0.
The whole module can be found at http://git.sans.ethz.ch/?p=puppet-modules/ns_server;a=summary
Related issues
History
Updated by James Turnbull over 1 year ago
- Status changed from Unreviewed to Duplicate
Duplicate of #4736.