Chassis / puppet-wp

This module enables the easy use of WP CLI to control your WordPress site through Puppet manifests
https://chassis.github.io/puppet-wp/
GNU Lesser General Public License v3.0
44 stars 39 forks source link

Could not find dependency Mysql::Db[store] for Wp::Site #10

Closed guaka closed 10 years ago

guaka commented 10 years ago

I'm pretty new to puppet. So I'm a bit confused by this error message:

Could not find dependency Mysql::Db[store] for Wp::Site[/mydir] at etc/puppet/manifests/myhost.pp:25

I simply copied and adapted what I found in README.md

   require => Mysql::Db['store']
guaka commented 10 years ago

Adding include mysql::server helped a bit. Now I'm down to

Could not find dependency Wp::Site[store] for Wp::Plugin[debug-bar] at etc/puppet/manifests/myhost.pp:63
guaka commented 10 years ago

Tried the obvous include wp and include wp::site but got Could not find class wp and Could not find class wp::site with that.

guaka commented 10 years ago

I uncommented most of the README.md stuff, only left the first, now running into an issue higher up: #11

rmccue commented 10 years ago

The Mysql::Db definition should be in your own code; that is, you have to manage the database yourself.

This should be noted in the docs though. :)

guaka commented 10 years ago

Ok, adding something like the following to README.md will help:

include mysql::server

mysql::db { 'store':
   user   => 'wp_user',
   password => 'lots_of_randomness_here'
}

I'm happy to edit README.md once I get it working, #11 is still holding me back now.

guaka commented 10 years ago

I added a pull request for README.md :)