generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding an ability to set a certain check_type when setting up MySQL replication host groups #20
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
452950d
Adding an ability to set check_type when setting up MySQL replication…
zentavr fedf0ca
Fixing pep8 errors
zentavr 518e936
Adding the specification re: check_type about when it was added to th…
zentavr 8993e4d
Changing the description of check_type parameter (Andersson code revi…
zentavr f0a0ae5
Adding a changelog
zentavr b4c48bd
Redoing the way we test proxysql_replication_hostgroups module when p…
zentavr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 4 additions & 4 deletions
8
...argets/test_proxysql_replication_hostgroups/tasks/cleanup_test_replication_hostgroups.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
- name: "{{ role_name }} | {{ current_test }} | ensure we're in a clean state when we start/finish" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure we're in a clean state when we start/finish" | ||
block: | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure no replication hostgroups are created" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure no replication hostgroups are created" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"DELETE FROM mysql_replication_hostgroups" | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure no replication hostgroups are saved on disk" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure no replication hostgroups are saved on disk" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"SAVE MYSQL SERVERS TO DISK" | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure no replication hostgroups are loaded to runtime" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure no replication hostgroups are loaded to runtime" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"LOAD MYSQL SERVERS TO RUNTIME" |
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
10 changes: 5 additions & 5 deletions
10
.../targets/test_proxysql_replication_hostgroups/tasks/setup_test_replication_hostgroups.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
- name: "{{ role_name }} | {{ current_test }} | ensure test replication hostgroups is created when we start" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure test replication hostgroups is created when we start" | ||
block: | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure test replication hostgroups is created in memory" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"INSERT OR REPLACE INTO mysql_replication_hostgroups (writer_hostgroup, reader_hostgroup) VALUES ('{{ test_writer_hostgroup }}', '{{ test_reader_hostgroup}}')" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure test replication hostgroups is created in memory" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"INSERT OR REPLACE INTO mysql_replication_hostgroups (writer_hostgroup, reader_hostgroup, check_type) VALUES ('{{ test_writer_hostgroup }}', '{{ test_reader_hostgroup}}', '{{ test_check_type }}')" | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure test replication hostgroups is created on disk" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure test replication hostgroups is created on disk" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"SAVE MYSQL SERVERS TO DISK" | ||
|
||
- name: "{{ role_name }} | {{ current_test }} | ensure test replication hostgroups is created in runtime" | ||
- name: "{{ role_name }} | {{ current_test }} | {{ test_check_type }} | ensure test replication hostgroups is created in runtime" | ||
shell: mysql -uadmin -padmin -h127.0.0.1 -P6032 -BNe"LOAD MYSQL SERVERS TO RUNTIME" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do NOT modify
changelogs/changelog.yaml
directly. Create a changelog fragment.