Skip to content

(MODULES-3623) Centralise MySQL calls... #1036

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

Merged

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Dec 7, 2017

...so they can all be modified from one place.

The current codebase handles each mysql call via calls to the command-line mysql client. There are basically only two sets of options passed, but the options are repeated separately in various places throughout the code. The new self.mysql function now issues the call to the mysql client with one of the two sets of options (selected via an optional function parameter).

Now the options to all mysql calls can be modified from one place. This will be useful when we are converting the module to allow for databases on multiple remote servers, since we will be able to add the -h switch to all calls at once.

Rebase and squash of #904

S11 Admin and others added 4 commits December 7, 2017 10:51
...so they can all be modified from one place.

The current codebase handles each mysql call via calls to the command-line
mysql client.  There are basically only two sets of options passed, but the
options are repeated separately in various places throughout the code.  The
new self.mysql function now issues the call to the mysql client with one of
the two sets of options (selected via an optional function parameter).

Now the options to all mysql calls can be modified from one place.  This will
be useful when we are converting the module to allow for databases on multiple
remote servers, since we will be able to add the -h switch to all calls at
once.
mysql_grant now checks for mysql command
@eputnam eputnam merged commit b941c56 into puppetlabs:master Dec 8, 2017
@hunner hunner deleted the wayland-ticket/3623-Centralise-MySQL-calls-3 branch December 8, 2017 18:34
hunner added a commit to hunner/puppetlabs-mysql that referenced this pull request Jan 23, 2018
eputnam added a commit that referenced this pull request Jan 23, 2018
(maint) Update mysql_user provider from #1004 for #1036
shawnferry pushed a commit to shawnferry/puppetlabs-mysql that referenced this pull request Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants