you might want to try regexp, e.g. <% if fqdn =~ /^something/ -%>
I would say that its usually not a good idea to have if conditions in your manifest or templates based on hostnames.. Ohad On Thu, Mar 4, 2010 at 10:01 PM, Len Rugen <[email protected]> wrote: > Will something like this work in a template? > > <% if fqdn.starts_with?'something' then %> > > My test isn't working, I don't know if it's some minor syntax issue or if > I'm completely out of bounds. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
