Last active
August 29, 2015 14:05
-
-
Save anokun7/bd2ec04e0a3e450e83bc to your computer and use it in GitHub Desktop.
blog.pp & saat.pp
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
define profiles::blog ( | |
$docroot = '/opt/wordpress', | |
$port = '80', | |
$vhost_name = $title | |
){ | |
class { 'wordpress': | |
wp_owner => 'wordpress', | |
wp_group => 'wordpress', | |
install_dir => $docroot | |
} | |
apache::vhost { $vhost_name: | |
port => $port, | |
docroot => $docroot | |
} | |
user { 'wordpress': | |
ensure => present | |
} | |
group { 'wordpress': | |
ensure => present | |
} | |
} |
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
include '::mysql::server' | |
class { '::mysql::bindings': | |
php_enable => true | |
} | |
include '::apache' | |
include '::apache::mod::php' | |
profiles::blog { 'blog.nikki.com': | |
docroot => '/opt/nikki', | |
port => '80' | |
} | |
profiles::blog { 'blog.anoop.com': | |
docroot => '/opt/anoop', | |
port => '80' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment