cocluto v1.0.25 - changed default db_user and ssh_user to qumandbw instead of qumanw
- so that it matches the quman database setup used at IPR work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
This commit is contained in:
parent
24bfb1af95
commit
aa6c84ef80
|
|
@ -172,9 +172,9 @@ def create_db_backend(db_def: str) -> ISqlDatabaseBackend:
|
|||
db_params = db_def['params']
|
||||
if db_type == 'mysql_via_ssh':
|
||||
sql_server_fqdn = db_params['sql_server_fqdn'] # the fully qualified domain name of the mysql server hosting the database eg 'alambix-master.ipr.univ-rennes.fr'
|
||||
db_user = db_params['db_user'] # eg 'qumanw'
|
||||
db_user = db_params['db_user'] # eg 'qumandbw'
|
||||
db_name = db_params['db_name'] # the name of the database, eg 'quman'
|
||||
ssh_user = db_params['ssh_user'] # the ssh user which has the privileges to access the mysql database, eg 'qumanw'
|
||||
ssh_user = db_params['ssh_user'] # the ssh user which has the privileges to access the mysql database, eg 'qumandbw'
|
||||
backend = SshAccessedMysqlDb(sql_server_fqdn, db_user, db_name, ssh_user)
|
||||
command = f'ssh "{ssh_user}@{sql_server_fqdn}" "hostname"'
|
||||
completed_process = subprocess.run(command, shell=True, check=False, capture_output=True)
|
||||
|
|
@ -399,7 +399,7 @@ def main():
|
|||
" quman show-disable-requests main.q@node42\n"
|
||||
" quman show-disable-requests\n"
|
||||
" quman --db-def='{\"type\": \"sqlite\", \"params\": {\"sqlite_file_path\": \"/tmp/quman.sqlite\"} }' show-disable-requests\n"
|
||||
" quman --db-def='{\"type\": \"mysql_via_ssh\", \"params\": {\"sql_server_fqdn\": \"alambix-master.ipr.univ-rennes.fr\", \"db_user\": \"qumanw\", \"db_name\": \"quman\", \"ssh_user\": \"qumanw\"} }' show-disable-requests\n",
|
||||
" quman --db-def='{\"type\": \"mysql_via_ssh\", \"params\": {\"sql_server_fqdn\": \"alambix-master.ipr.univ-rennes.fr\", \"db_user\": \"qumandbw\", \"db_name\": \"quman\", \"ssh_user\": \"qumandbw\"} }' show-disable-requests\n",
|
||||
formatter_class=CustomHelpFormatter
|
||||
)
|
||||
subparsers = parser.add_subparsers(dest="action", help="Action to perform")
|
||||
|
|
@ -408,9 +408,9 @@ def main():
|
|||
"type": "mysql_via_ssh",
|
||||
"params": {
|
||||
"sql_server_fqdn": "alambix-master.ipr.univ-rennes.fr",
|
||||
"db_user": "qumanw",
|
||||
"db_user": "qumandbw",
|
||||
"db_name": "quman",
|
||||
"ssh_user": "qumanw"}}
|
||||
"ssh_user": "qumandbw"}}
|
||||
parser.add_argument("--json", action="store_true", help="Output results in JSON format.")
|
||||
parser.add_argument("--db-def", type=str, default=json.dumps(default_db_def), help="the definition in json format of the database storing the disable requests.")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
__version__ = '1.0.24'
|
||||
__version__ = '1.0.25'
|
||||
|
||||
|
||||
class Version(object):
|
||||
|
|
|
|||
Loading…
Reference in New Issue