On Thu, Aug 4, 2016 at 8:17 AM, Alex Samad <a...@samad.com.au> wrote:
> Hi > > I want to take ${trusted['certname']} and extract the hostname short form > from it. > > so if i had thisbox.abc.com.au. I would like to get just thisbox > $hostpart=split($trusted['certname'], '[.]')[0] ... would be a cleaner approach. Craig -- 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/CACxdKhGWJSH86RrTkJyOfkUtzNieHTVOYTLEmoBHvWLvVKtVgQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.