Skip to content

Instantly share code, notes, and snippets.

@MeenachiSundaram
Created February 22, 2016 10:44
Show Gist options
  • Save MeenachiSundaram/dbe9cfcc3a0046a2033d to your computer and use it in GitHub Desktop.
Save MeenachiSundaram/dbe9cfcc3a0046a2033d to your computer and use it in GitHub Desktop.
node 'db' {
include 'mysql::server'
mysql::db { 'wordpress':
user => 'wordpress',
password => 'password',
host => 'localhost',
grant => ['SELECT', 'UPDATE'],
sql => '/var/lib/mysql/wordpress',
import_timeout => 900,
}
include 'mysql::client'
include 'mysql::bindings'
}
node 'web' {
include apache
include 'apache::mod::php'
include 'mysql::client'
include 'mysql::bindings'
include wordpress
}
node 'lb' {
include ::haproxy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment