[MXS-1445] Add script variables Created: 2017-09-18  Updated: 2019-12-10  Resolved: 2017-09-22

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Done Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-2791 Special arguments are not passed to M... Closed
relates to MXS-2792 Documentation for MaxScale's monitor ... Closed
Epic Link: MaxScale MRM
Sprint: 2017-42

 Description   

The failover and switchover scripts need to be provided with credentials using which the scripts can access and make modifications to the affected servers. The scripts will use the same credentials as the MaxScale monitor does.

In the MaxScale configuration file it is possible to provide credentials for the monitor, to be used with all servers, and also servers specific monitor credentials.

A new script variable, e.g. CREDENTIALS could be introduced that would contain the credentials for all nodes.

script=failover.sh --slaves=$SLAVELIST --credentials=$CREDENTIALS

When executed, the command line would look like:

failover.sh --credentials=maxmon:maxpwd1@[192.168.0.201]:3306,maxmon:maxpwd2@[192.168.0.121]:3306
 --slaves=[192.168.0.201]:3306,[192.168.0.121]:3306


Generated at Thu Feb 08 04:06:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.