forked from jonhadfield/puppet-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
on a 2 instance install in AWS, (db/web) when using
db_host => 'my_remote_db',
create_db => true,
create_db_user => true,
Puppet will fail, as regardless of the $dbhost parameter will still try to connect locally.
Workaround:
Create the DB in the db manifest first using the mysql puppet module
mysql::db {'wordpress':
user => 'wordpress',
password => 'mypass',
host => 'wphost',
ensure => 'present',
require => File['/root/.my.cnf'],
}
You must also then use Vagrant Hostmaster plugin to update hoses file so web and db can communicate.
I never found the RC of why the db_host was ignored, but having read through the code, and the documentation being somewhat 'light' on this subject, i opted to workaround the issue.
Metadata
Metadata
Assignees
Labels
No labels