----- Original Message -----
> I have this in nodes.pp
>
> $puppetmaster_fqdn = generate("/usr/bin/facter","fqdn")
the output from this command has a new line in it
> http://<%= puppetmaster_fqdn %>:8080
<%= puppetmaster_fqdn.chomp %>
--
R.I.Pienaar
I suspect that -%> only eats whitespace outside the bracket, not
inside. Anyhow, you can make this do the right thing using a tiny bit
of ruby: <%= puppetmaster_fqdn.chomp %>
Regards,
Daniel
--
✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
This works when using the variable inside a template.
But I want to use the variable in an Exec command. How to remove the newline here? .chomp does not seem to work here.