Skip to content

Instantly share code, notes, and snippets.

@anokun7
Last active August 29, 2015 14:05
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 anokun7/bd2ec04e0a3e450e83bc to your computer and use it in GitHub Desktop.
Save anokun7/bd2ec04e0a3e450e83bc to your computer and use it in GitHub Desktop.
blog.pp & saat.pp
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
}
}
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