Created
May 14, 2013 15:26
-
-
Save skoop/5576816 to your computer and use it in GitHub Desktop.
Default.pp
This file contains hidden or 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
exec { 'apt-get update' : | |
command => 'apt-get update', | |
path => '/usr/bin/', | |
timeout => 60, | |
tries => 3 | |
} | |
class { 'apt' : | |
always_apt_update => true | |
} | |
package { ['python-software-properties'] : | |
ensure => 'installed', | |
require => Exec['apt-get update'], | |
} | |
package { ['build-essential', 'vim', 'curl', 'gearman'] : | |
ensure => 'installed', | |
require => Exec['apt-get update'], | |
} | |
file { '/home/vagrant/.bash_aliases' : | |
source => 'puppet:///modules/puphpet/dot/.bash_aliases', | |
ensure => 'present', | |
} | |
apt::ppa { 'ppa:ondrej/php5' : } | |
class { 'apache' : require => Apt::Ppa['ppa:ondrej/php5'],} | |
apache::dotconf { 'custom' : | |
content => 'EnableSendfile Off', | |
} | |
apache::module { 'rewrite' : } | |
apache::vhost { 'gearman.techademy' : | |
server_name => 'gearman.techademy', | |
serveraliases => [], | |
docroot => '/var/www/', | |
port => '80', | |
env_variables => [], | |
priority => '1' | |
} | |
class { 'php' : | |
service => 'apache', | |
require => Package['apache'], | |
} | |
php::module { 'cli' : } | |
php::module { 'curl' : } | |
php::module { 'intl' : } | |
php::module { 'mcrypt' : } | |
php::module { 'mysql' : } | |
class { 'php::devel' : | |
require => Class['php'], | |
} | |
class { 'php::pear' : | |
require => Class['php'], | |
} | |
php::pecl::module { 'pecl_http' : | |
use_package => false | |
} | |
php::pecl::module { 'pecl_gearman' : | |
use_package => false | |
} | |
class { 'xdebug' : } | |
xdebug::config { 'cgi' : } | |
xdebug::config { 'cli' : } | |
php::ini { 'default' : | |
value => [ | |
'date.timezone = America/Chicago', | |
'display_errors = On', | |
'error_reporting = -1' | |
], | |
target => 'error_reporting.ini' | |
} | |
class { 'mysql' : | |
root_password => 'testtest', | |
} | |
mysql::grant { 'testtest' : | |
mysql_privileges => 'ALL', | |
mysql_db => 'testtest', | |
mysql_user => 'test', | |
mysql_password => 'testtest', | |
mysql_host => 'localhost', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment