Skip to content

Instantly share code, notes, and snippets.

@terrimonster
Created September 19, 2013 21:02
Show Gist options
  • Save terrimonster/6629792 to your computer and use it in GitHub Desktop.
Save terrimonster/6629792 to your computer and use it in GitHub Desktop.
class blog {
include apache
include php
$myvhost = 'terriblog.puppetlabs.com'
class { 'wordpress':
install_dir => "/var/www/${myvhost}",
db_name => 'wordpress',
db_host => 'localhost',
db_user => 'wordpress',
db_password => 'insecureassword',
}
#Configuration of php-enabled webserver
apache::vhost { $myvhost:
priority => '10',
}
#Configuration MySQL server
class { 'mysql::server':
config_hash => { 'root_password' => 'password', },
}
include mysql::php
#PHP 5.3 or greater
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment