On Fri, 2012-12-21 at 16:09 -0500, Calvin Walton wrote:
> On Tue, 2012-12-18 at 09:09 -0800,
rs...@certifydatasystems.com wrote:
> > Hi all,
> >
> > I want to do some code reuse, and modules seem overkill. Is it possible to
> > have something like this?
>
> Modules really aren't that much overkill, and will help clean things up
> a bit. I'd really recommend using them over the 'import' suggestion.
>
> > A file called myuser.pp
> > class myuser {
> > user {...}
> > file {...}
> > ...
> > }
>
> Just move this file to /etc/puppet/modules/myuser/init.pp
I'm sorry, I made a typo here... the correct path
is /etc/puppet/modules/myuser/manifests/init.pp
I know it's a fairly long path, but it's still just one file. Using
modules even for simple stuff is a good idea, in my opinion.