[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ITC: dpkg-sysconfig



On Tue, Aug 28, 2001 at 10:19:16PM +0200, Ola Lundqvist wrote:

> On Mon, Aug 27, 2001 at 11:54:52PM -0400, Matt Zimmerman wrote:
> 
> > If you're not already using it, cfengine would be a great tool to build this
> > around.  Each package would only need to install a chunk of cfengine
> > configuration, which would be included in the main system configuration.  In
> > fact, each "configuration package" could be reduced to one cfengine config
> > file, plus whatever auxiliary files are required (config templates, etc.).
> 
> There are a couple of problems. One is group memberships. In cfengine
> (if I'm right) you can only do something like:
> 
> foo = ( bar1 bar2 bar3 )
> 
> This assigns barX to the group foo. But I need to have multiple packages
> assign different users to the same group. I can not see that it is
> possible, or.

I'm not sure what you mean...I think you're confusing UNIX groups with
cfengine classes.

> But cfengine seems to be a nice thing. Quite hard to revert the changes
> that cfengine have created but that is maybe not a big issue. It does
> not solve all problems but some of them. I can not see that you can add
> users using cfengine, but I can be wrong here too.

It's not easy to revert the changes one-by-one in most cases, but it's easy
to back out to the state of the system before cfengine touched it, as
cfengine backs up each file before modifying it.

I don't think there is a built-in capability for adding a user, but it would
be a good addition to the program, and probably easy to implement.  Even
without extending cfengine, it is easy to add a user to a Debian system
using a shellcommand rule and adduser.

-- 
 - mdz



Reply to: