Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58390 - include and/or variable system for tenshi.conf
Summary: include and/or variable system for tenshi.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Tenshi (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Tenshi Group User
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 05:25 UTC by Wolfram Schlich (RETIRED)
Modified: 2005-06-16 05:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2004-07-26 05:25:36 UTC
1. I'd like to have an include system for tenshi.conf, enabling one to use
--8<--
include /etc/tenshi/tenshi.conf.local
--8<--
in tenshi.conf.

settings in this included file could/should override all previously set things, like queues or groups or "global" settings.

2. I'd like to have a variable system for tenshi.conf, like:
--8<--
set variable "some value"
--8<--
so one could use:
--8<--
set domainname 'fqdn.dom'
set hostname "some.$domainname"
set defaultschedule '[*/30 * * * *]'
set queue critical tenshi@$hostname hostmaster@$domainname [$defaultschedule]
--8<--
in tenshi.conf

include + variable system together would make it painless to share *one* tenshi.conf among multiple hosts having an individual tenshi.conf.local per host, like:

--8<--[ /etc/tenshi/tenshi.conf.local ]--8<--
set domainname 'thisdomain.tld'
set hostname 'thishost'
set fqdn "$hostname.$domainname"
set addr_tenshi "tenshi@$fqdn"
set addr_sysadmin "sysadmin@$fqdn"
set addr_postmaster "postmaster@$fqdn"
--8<--[ /etc/tenshi/tenshi.conf ]--8<--
include /etc/tenshi/tenshi.conf.local
set defaultschedule '[*/30 * * * *]'
set queue misc $addr_tenshi $addr_sysadmin [$defaultschedule]
set queue mail $addr_tenshi $addr_postmaster [$defaultschedule]
set queue crit $addr_tenshi $addr_sysadmin [now] tenshi CRITICAL report
--8<--
Comment 1 rob holland (RETIRED) gentoo-dev 2004-07-26 06:32:41 UTC
I'll look at allowing include statements in tenshi. I'm not keen on the variable idea however. I think thats a slippery slope :/
Comment 2 Andrea Barisani (RETIRED) gentoo-dev 2004-07-26 15:58:26 UTC
I also agree about the include, and I don't think that using variables that way would be useful, an 'include' statement should help sufficiently with any possible scenario.
Comment 3 Wolfram Schlich (RETIRED) gentoo-dev 2004-07-26 23:20:59 UTC
well, then _queues_ couldn't be *shared* among hosts because the sender addresses should be host specific :-(
imagine: when you change queues you *still* would have to modify *all individual* tenshi.conf.local files on *all* machines (which is just what I _don't_ want).

honestly, a *simple* variable system would be better than nothing for me, like:
--8<--[ /etc/tenshi/tenshi.conf.local ]--8<--
set hostname 'some.fqdn.here'
[ local queues ]
[ local rules]
--8<--

--8<--[ /etc/tenshi/tenshi.conf ]--8<--
include /etc/tenshi/tenshi.conf.local
set queue [...] tenshi@$hostname root@$hostname [...]
[ more generic queues ]
[ generic rules ]
--8<--
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2005-01-21 00:54:32 UTC
*push* any news here?
Comment 5 rob holland (RETIRED) gentoo-dev 2005-01-25 04:01:36 UTC
no
Comment 6 Andrea Barisani (RETIRED) gentoo-dev 2005-06-09 12:44:33 UTC
Please test http://dev.gentoo.org/~lcars/tenshi/tenshi-0.3.4-rc1.tar.gz
Comment 7 Andrea Barisani (RETIRED) gentoo-dev 2005-06-09 12:45:28 UTC
Please test http://dev.gentoo.org/~lcars/tenshi/tenshi-0.3.4-rc1.tar.gz
Comment 8 Andrea Barisani (RETIRED) gentoo-dev 2005-06-16 05:37:37 UTC
0.3.4 is out