Commit 688cc6bd authored by Alain Takoudjou's avatar Alain Takoudjou

repman: dbname is generated

parent e4579253
......@@ -18,7 +18,7 @@ md5sum = 37eff9b6b85fcbd3930aa58a1e08d32e
[instance-repman.cfg]
_update_hash_filename_ = instance-repman.cfg.jinja2.in
md5sum = 3faea4a761b4a48aa4c141cf8f267059
md5sum = 140a5c8a8bf8a841f65f2aa767db2c38
[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