Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
165 lines (135 sloc) 3.22 KB
group { 'puppet': ensure => present }
Exec { path => [ '/bin/', '/sbin/', '/usr/bin/', '/usr/sbin/' ] }
File { owner => 0, group => 0, mode => 0644 }
class {'apt':
always_apt_update => true,
}
Class['::apt::update'] -> Package <|
title != 'python-software-properties'
and title != 'software-properties-common'
|>
apt::key { '4F4EA0AAE5267A6C': }
apt::ppa { 'ppa:ondrej/php5':
require => Apt::Key['4F4EA0AAE5267A6C']
}
file { '/home/vagrant/.bash_aliases':
ensure => 'present',
source => 'puppet:///modules/puphpet/dot/.bash_aliases',
}
package { [
'build-essential',
'vim',
'curl',
'git-core',
'nfs-common'
]:
ensure => 'installed',
}
class { 'apache': }
apache::dotconf { 'custom':
content => 'EnableSendfile Off',
}
apache::module { 'rewrite': }
apache::vhost { 'symfonyvalencia.dev':
server_name => 'symfonyvalencia.dev',
serveraliases => [
'www.symfonyvalencia.dev'
],
docroot => '/var/www/web',
port => '80',
env_variables => [
],
priority => '1',
}
class { 'php':
service => 'apache',
module_prefix => '',
require => Package['apache'],
}
php::module { 'php5-mysql': }
php::module { 'php5-cli': }
php::module { 'php5-curl': }
php::module { 'php5-intl': }
php::module { 'php5-mcrypt': }
php::module { 'php-apc': }
class { 'php::devel':
require => Class['php'],
}
class { 'php::pear':
require => Class['php'],
}
php::pear::module { 'phpunit':
use_package => false,
repository => 'pear.phpunit.de',
}
php::pecl::module { 'xhprof':
use_package => false,
preferred_state => 'beta',
}
apache::vhost { 'xhprof':
server_name => 'xhprof',
docroot => '/var/www/xhprof/xhprof_html',
port => 80,
priority => '1',
require => Php::Pecl::Module['xhprof']
}
class { 'xdebug':
service => 'apache',
}
class { 'composer':
require => Package['php5', 'curl'],
}
puphpet::ini { 'xdebug':
value => [
'xdebug.default_enable = 1',
'xdebug.remote_autostart = 0',
'xdebug.remote_connect_back = 1',
'xdebug.remote_enable = 1',
'xdebug.remote_handler = "dbgp"',
'xdebug.remote_port = 9000',
'xdebug.max_nesting_level = 250'
],
ini => '/etc/php5/conf.d/zzz_xdebug.ini',
notify => Service['apache'],
require => Class['php'],
}
puphpet::ini { 'php':
value => [
'date.timezone = "Europe/Madrid"'
],
ini => '/etc/php5/conf.d/zzz_php.ini',
notify => Service['apache'],
require => Class['php'],
}
puphpet::ini { 'custom':
value => [
'display_errors = On',
'error_reporting = -1'
],
ini => '/etc/php5/conf.d/zzz_custom.ini',
notify => Service['apache'],
require => Class['php'],
}
class { 'mysql::server':
config_hash => { 'root_password' => 'root' }
}
mysql::db { 'symfonyvalencia':
grant => [
'ALL'
],
user => 'symfonyvalencia',
password => 'symfonyvalencia',
host => 'localhost',
charset => 'utf8',
require => Class['mysql::server'],
}
class { 'phpmyadmin':
require => [Class['mysql::server'], Class['mysql::config'], Class['php']],
}
apache::vhost { 'phpmyadmin':
server_name => 'phpmyadmin',
docroot => '/usr/share/phpmyadmin',
port => 80,
priority => '10',
require => Class['phpmyadmin'],
}