2 <debug>[% global.debug %]</debug>
3 [% FOREACH tag = ['server_id' 'server_shift' 'type' 'name' 'host' 'port' 'user' 'passwd' 'namespace' ] %]
4 [% IF database.$tag.defined %]
5 <[% tag %]>[% database.$tag %]</[% tag %]>
10 <type>[%- IF database.type == 'PostgreSQL' -%]
12 [%- ELSIF database.type == 'MySQL' -%]
17 [% FOREACH option = database.options.keys %]
19 <name>[% option %]</name>
20 <value>[% database.options.$option %]</value>