-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cluster: publish a new instance configuration
@TarantoolBot document Title: `tt cluster publish` can publish a new instance configuration This patchs adds an ability to publish a new instance configuration with `tt cluster publish`. Prior this patch this command returns an error if the instance is not found in the config. Now, to create a new instance configuration, a replicaset name with `--replicaset` can be specified, and, if it's not enough, a group name with `--group`. For example: ```sh $ tt cluster show http://localhost:2379/foo /foo/config/all credentials: users: guest: roles: - super groups: group-001: replicasets: replicaset-001: instances: instance-001: iproto: listen: - uri: localhost:3301 instance-002: iproto: listen: {} $ tt cluster publish http://localhost:2379/foo?name=instance-003 inst.yml ⨯ failed to create an instance "instance-003" configuration: replicaset name is not specified $ tt cluster publish --replicaset replicaset-001 http://localhost:2379/foo?name=instance-003 inst.yml $ tt cluster show http://localhost:2379/foo credentials: users: guest: roles: - super groups: group-001: replicasets: replicaset-001: instances: instance-001: iproto: listen: - uri: localhost:3301 instance-002: iproto: listen: {} instance-003: database: mode: rw ``` Part of #316
- Loading branch information
Showing
9 changed files
with
470 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.