Skip to content
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

putting the db on a separate host #33

Open
mc0e opened this issue Mar 9, 2014 · 2 comments
Open

putting the db on a separate host #33

mc0e opened this issue Mar 9, 2014 · 2 comments

Comments

@mc0e
Copy link

mc0e commented Mar 9, 2014

The documentation on installing the database on a different server is light. My impression is that it's only intended that this module supports the web machine, not that it also run on the db machine?

I've been looking in class wordpress::db (I realise that's not documented in README.md, so perhaps I should not consider it to be part of the external API?)

wordpress::db is simple enough, so I thought I'd just call it on the db server, but then I realised that the way 'db_host' is used for the mysql_user and mysql_grant resources, it actually refers to the IP of the client system, not the host that the db is on. That surprised me, but by providing the name of the web host there, it looks like it would still work. However, the module 'require's wordpress::app, which clearly means it can't be used on the db host in it's current form.

It appears that I'm looking beyond the usage that's been contemplated to date, so consider this a feature request.

@ShonM
Copy link

ShonM commented Oct 12, 2014

👍 Could use this

@neillturner
Copy link

neillturner commented Aug 17, 2016

In my enhancement at https://github.com/neillturner/puppet-wordpress i allow environment variables to be set for dbname etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants