I am looking the way to have the result of this ruby template file:
ServerName 1.server.foo
knowing that if I run
$ facter -p fqdn
1.server.foo.internet.com
I would probably play with <%= @fqdn %>
and .gsub?
server-id: <%= @fqdn %>.gsub(/.internet.com/, '')