I am getting a syntax error in a module and I'm not sure why...

Anyone care to take a look?

class audit {
  file { "/etc/audit.rules":
    owner => "root",
    group => "root",
    mode  => 640,
    case $operatingsystemrelease {
      "10.2": { path   => "/etc/audit.rules",
        source => "puppet:///modules/audit/audit.rules.sles10",
        require => Package["audit-libs","audit"]
      }
      "11.1": { path   => "/etc/audit/audit.rules",
        source => "puppet:///modules/audit/audit.rules.sles11",
        require => Package["audit-libs","audit","audit-audispd-
plugins"]
      }
    }
  }
}

error on client is:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Syntax error at 'case'; expected '}' at /etc/puppet/shared/
modules/audit/manifests/init.pp:6 on node node.example.com

Also,  is it possible to do regex's in the case statement?

i.e"
  "/^10\.[0-3]*/": { stuff here }
  "/^11\.[0-3]*/": { other stuff }

Thanks

-- 
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