I'm having similar problems, should it be:

class inittab {
        define conf (
                $id,
                $runlevels = '123456',
                $action = 'respawn',
                $process
        ) {
                $require {
                        $require
                }

                augeas {"inittab_$id":
                        context => "/files/etc/inittab",
                        changes => [
                                "set $id/runlevels $runlevels",
                                "set $id/action $action",
                                "set $id/process $process",
                                ],


                }
        }

}

With that, I get:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not parse for environment jkoppe: Syntax error at '{'; expected '}' at
/home/jkoppe/svn/production/puppet/modules/inittab/manifests/init.pp:10 on
node indtst5

On Mon, Jul 12, 2010 at 6:48 AM, Tim <tkedwa...@fastmail.com.au> wrote:

> Thanks, that fixed it.
>
> On Jul 9, 5:10 pm, Alan Barrett <a...@cequrux.com> wrote:
> > On Fri, 09 Jul 2010, Tim wrote:
> > > # Generic config file
> > > define config-file ($fullpath, $source) {
> > >         if $require {
> > >                 require $require
> > >         }
> > >         file { $fullpath:
> > >         source => 
> > > "puppet://puppet.hq.eso.org/modules/${source}<http://puppet.hq.eso.org/modules/$%7Bsource%7D>
> ",
> > >         backup => mainbackup,
> > >         mode => 644,
> > >         ensure => file,
> > >         group => root,
> > >         owner => root
> > >         }
> > > }
> >
> > Just delete the "if" statement and the explicit "require" statement, and
> > the right thing should happen.  Any "require" passed to your definition
> > should propagate to the "file" resource insuide the definition
> > automatically.
> >
> > --apb (Alan Barrett)
>
> --
> 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.
>
>


-- 
Jason Koppe
jason.robert.ko...@gmail.com
Cell (210) 445-8242

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

Reply via email to