> On Feb 25, 2015, at 2:26 PM, Peter Berghold <salty.cowd...@gmail.com> wrote: > > I have a situation where there is an uppercase letter in a client's host > name. When Puppet creates the certificate for the host the resultant name for > the is in all lower case as I'd expect. > > The trouble comes in where I am managing the /etc/puppet/puppet.conf file. In > my template I have > certname = <%= certname %> > > and in my class I have certname defined as > > $certname = downcase("$fqdn") > > This is not working. How should I attack this?
Since templates let you use normal ruby functions, I would do your downcasing in there: certname = <% certname.downcase %> -- Peter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/E92AFA0D-1939-41A4-8B13-27195FD7E994%40gmail.com. For more options, visit https://groups.google.com/d/optout.