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<--
I'll look at allowing include statements in tenshi. I'm not keen on the variable idea however. I think thats a slippery slope :/
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.
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<--
*push* any news here?
no
Please test http://dev.gentoo.org/~lcars/tenshi/tenshi-0.3.4-rc1.tar.gz
0.3.4 is out