Thank you!  That got it.  Why it "didn't work" before I'm not sure. On to
my next "dumb question."


On Wed, Feb 25, 2015 at 3:21 PM Peter Bukowinski <pmb...@gmail.com> wrote:

>
> > On Feb 25, 2015, at 3:20 PM, Peter Bukowinski <pmb...@gmail.com> wrote:
> >
> >
> >> 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 %>
> >
> Correction:
>
>         certname = <%= certname.downcase %>
>
> --
> 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/DB8C41A8-AA82-4769-83C5-7B0D19AC7CBE%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAArvnv2Seszfx-p%3D79ZzFJwVk9vVW9v9gE7VVsgkQdNJaD-6Lw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to