Commit 92048e55 authored by Alain Takoudjou's avatar Alain Takoudjou

repman: dbname is generated

parent c8d2dda7
......@@ -18,7 +18,7 @@ md5sum = 37eff9b6b85fcbd3930aa58a1e08d32e
[instance-repman.cfg]
_update_hash_filename_ = instance-repman.cfg.jinja2.in
md5sum = 0fc3381fbe1c3a53ed5359d7d04b9847
md5sum = 6d2352e15ffcd112e8f32065d9159860
[config-toml.in]
_update_hash_filename_ = templates/config.toml.in
......
......@@ -63,7 +63,7 @@ mode = 755
[database-slave-information]
{% for instance_dict in slave_instance_list -%}
{% set slave_dict = {
'name': instance_dict.get('db_name', instance_dict['db_name'].replace('-', '_').lower()),
'name': 'db_%s' % instance_dict['slave_reference'].replace('-', '_').lower(),
'user': instance_dict.get('db_user', 'user'),
'password': instance_dict.get('db_password'),
'slave_reference': instance_dict['slave_reference']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment