Hello, I don't think this is a problem for my specific module.

If augeas is not installed, you get a return message:
{'kermit': 'No module named augeas'}

(here on minion kermit).

I think it is better  to handle this with module checks and error messages
than to force harsh dependencies for func.

Anyway I'm working on 2 other modules doing conf. management and using more
classical modules (re and ConfigParser), as an alternative.

Louis


2008/12/1 Silas Sewell <[EMAIL PROTECTED]>

> Just as a general question, how is Func going to handle the dependency
> of modules?
>
> Is every module going to have all the dependencies added to the main
> Func package, should sub-packages be created, or ....?
>
> I'd be in favour of having "main/supported" modules which are
> supported everywhere then creating subpackages for everything else (I
> would be willing to do this work).
>
> The augeas module would probably be good to have everywhere, but I can
> see other modules causing issues.
>
> I'd expect any module included with the main Func package to have all
> its dependencies meet, but forcing everyone to include tons
> dependencies, especially when older distros are supported, is going
> cause massive pains for systems administrators (ex: augeas being a
> newer project probably doesn't have a package in EPEL 3,4).
>
> On Mon, Dec 1, 2008 at 11:24 AM, Adrian LIkins <[EMAIL PROTECTED]> wrote:
> > Louis Coilliot wrote:
> >>
> >> > I'm thinking it's about time for another release.
> >> > (...)
> >> > So if anyone has anything outstanding (patches, modules,
> >> > must have features, must fix bugs, docs, etc) it would be
> >> > great if you could get it ready soon ;-)
> >> >(...)
> >> > Adrian
> >>
> >> Hello, so here is a new module proposal.
> >>
> >> This is a module to handle (get, set, list...) parameters in
> configuration
> >> files.
> >>
> >> It relies on augeas (http://augeas.net/).
> >>
> >> I wanted to post later,
> >> because in comparison with augeas.py I didn't make the move and insert
> >> methods,
> >> because I have improvements in mind,
> >> and because I want to add more behaviour consistency with augtool of
> >> Augeas.
> >>
> >> But I will not have time for this before Christmas, and the module is
> >> working fine as-is.
> >>
> >> A quick example:
> >> #!/usr/bin/env python
> >> import sys
> >> import func.overlord.client as fc
> >> c = fc.Client("*")
> >> print 'Set PermitRootLogin to no in sshd_config'
> >> print
> c.confmgt_augeas.set('/etc/ssh/sshd_config','PermitRootLogin','no')
> >>
> >> (which does what is expected, of course)
> >>
> >> In attachment you'll find:
> >> - the module
> >> - a test script I use to check the behaviour of the module
> >> - the result of this test script on my test platform
> >>  (so you can see what the module does)
> >> - a minimal doc. inspired from the quick tour on the augeas web site
> >>
> >> Let me know if you think it is useful.
> >
> > I definitely think it looks useful. I'll try to get this merged soon.
> >
> > Is there a particular version of augeas it needs?
> >
> >
> > Adrian
> >
> > _______________________________________________
> > Func-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/func-list
> >
>
>
>
> --
> Silas Sewell
>
> 720-863-4557 | www.silassewell.com
>
> _______________________________________________
> Func-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/func-list
>
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to