Skip to content

Fix missing mysql::config when including mysql #385

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
merged 1 commit into from
Dec 20, 2013

Conversation

liwo
Copy link

@liwo liwo commented Dec 5, 2013

In init.pp a depency between mysql::config and all db resources is
made. But mysql::config is not defined if only class mysql is included
on a node. This moves the dependency definition to mysql::server as
the dependency should only be needed on servers anyway.

In init.pp a depency between mysql::config and all db resources is
made. But mysql::config is not defined if only class mysql is included
on a node. This moves the dependency definition to mysql::server as
the dependency should only be needed on servers anyway.
@igalic
Copy link
Contributor

igalic commented Dec 5, 2013

Do you think it's somehow possible to make write a (system) test for this?

@igalic
Copy link
Contributor

igalic commented Dec 5, 2013

also, it appears that you'll have to rebase this pull request.

@liwo
Copy link
Author

liwo commented Dec 5, 2013

I'm still on the 1.x branch as I haven't yet done the big migration to master. Therefore this pull request is for the 1.x branch. I don't know if the issue still exists in master or not.

As for a test, I'm not sure how one could test this? It might make sense to test if the class mysql can be included standalone, without mysql::server. But that would be more a generic test and not specifically test this commit.

@igalic
Copy link
Contributor

igalic commented Dec 5, 2013

I'll best leave this one to @apenney, he's more familiar with the source than I am.

@apenney
Copy link
Contributor

apenney commented Dec 20, 2013

I think I'm OK with this. 1.x is pretty much abandoned and just exists for openstack at this point. I'll merge it, it looks sensible enough.

apenney pushed a commit that referenced this pull request Dec 20, 2013
Fix missing mysql::config when including mysql
@apenney apenney merged commit 947077f into puppetlabs:1.x Dec 20, 2013
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.

4 participants