Hi,
I'm trying to get the following to work:

class cluster {

  $cluster_name = hostname.slice(0..-2)
.
.
} # class

hoping that if I have a server called appfarmserver1 (obtained from facter,
can I use a fact like this!?), cluster_name will get set to appfarmserver .
. .

puppet --parseonly init.pp says:
err: Could not parse for environment production: Syntax error at '.';
expected '}'

Is there some way to get this to work?  Is there a better, more puppetty way
to do what I want to do, i.e. based on the hostname from fatcer, set the
variable cluster_name for use in a template.

Thanks so much,
Guy Matz

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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.

Reply via email to