I assume I have a syntax problem of some kind. I created a class file and
puppet complains on line 4. If I remove that block of code it complains
about the next block. What silly little mistake have I made? The error
reported for the code example below is:
Could not match ‘george’, at
/etc/puppet/environments/dev22/modules/custom_facts/manifests/virtuals.pp:4
class custom_facts::virtuals() {
$tmp1 = $operatingsystem ? {
/hello/ => ‘george’,
/windows/ => 'C:/tmp',
default => ‘/tmp’,
}
@file { 'tmp':
ensure => directory,
path => "$tmp1",
}
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.