Ticket #390 (closed enhancement: fixed)
Diversions for ConfigFiles
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 0.9.5 Release |
Component: | bcfg2-server | Version: | |
Keywords: | Cc: |
Description
Hi,
One cool feature would be to include divertions in the ConfigFile? syntax. Some environment do not place regular files at the same place.The normal way to do that now is to have 2 entries in the Cfg plugin and maintain them separately. I don't find that very friendly.
One probably better way would be to conserve the location of one (maybe your most spread-out os), and define the other as a divertion, kind of place the file in X but look it up in Y for your generators.
<ConfigFile? name='/the/real/place' diversion_of='/where/to/look/for/it'/>
Does that make sense?
jacques
PS: that could have some very nice extra uses where a path is prepended in the diversion. Something like /production-dont-touch/etc/syslog.conf and /testing/etc/syslog.conf would place an awful blame on the person who ignores the machine and hose the servers. This can be done with svn too, I know...
This has been added as the altsrc? feature. Great idea.