Created
September 26, 2013 21:31
-
-
Save terrimonster/6720879 to your computer and use it in GitHub Desktop.
Wordpress capstone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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