Hi,

here's what I'd do:

> include devices
> class service {
>     file {
>         "/opt":
>             ensure => directory,
>             owner => root,
>             group => wheel,
>             mode => 755;
>         "/opt/home":
>             ensure => directory,
>             owner => root,
>             group => wheel,
>             mode => 755;
>     }
>     define app (
>         $homedir = "/opt/home",
>         $service_num
>     ) {
>         file {
>             "$homedir/${service_num}":
>                 ensure  =>  directory,
>                 owner   =>  root,
>                 group   =>  wheel,
>                 mode    =>  0750;
>             "$homedir/${service_num}/dev":
>                 ensure  =>  directory,
>                 owner   =>  root,
>                 group   =>  wheel,
>                 mode    =>  0750;
>         }

          Devices::Device_node {
              dir     => "$homedir/${service_num}/dev/",
              require => File["$homedir/${service_num}/dev/"],
          }

>         devices::device_node {
>             "${homedir}/${service_num}/dev/null": ;
>             "${homedir}/${service_num}/dev/random": ;
>         }
>     }
> }

Although why your original approach didn't work is not quite fathomable
to me. If the error persistes, try and make a simplified version of your
manifests that reproduces the same problem. Often, this will make a
mistake obvious (when it stops to reproduce after all).

If the problem persists, use the simplified manifest in a bug report.

HTH,
Felix

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

Reply via email to