Skip to content

Instantly share code, notes, and snippets.

@terrimonster
Created September 26, 2013 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrimonster/6720879 to your computer and use it in GitHub Desktop.
Save terrimonster/6720879 to your computer and use it in GitHub Desktop.
Wordpress capstone
class blog {
$docroot = "/var/www/wordpress"
$vhost = "terriblog.puppetlabs.com"
host { $vhost:
ip => $::ipaddress
}
#Configuration of php-enabled webserver
include apache
apache::vhost { $vhost:
port => '80',
docroot => $docroot,
}
#Configuration MySQL server
class { 'mysql::server':
config_hash => { 'root_password' => 'password', },
}
#PHP 5.3 or greater
include apache::php
include mysql::php
class { 'wordpress':
install_dir => $docroot,
db_name => 'wordpress',
db_host => 'localhost',
db_user => 'wordpress',
db_password => 'insecurepassword',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment