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 <lenru...@gmail.com> 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 puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > 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 puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.