Created
August 20, 2013 23:25
-
-
Save trq/6288643 to your computer and use it in GitHub Desktop.
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 php | |
{ | |
$packages = [ | |
"php5", | |
"php5-cli", | |
"php5-mysql", | |
"php5-dev", | |
"php5-mcrypt", | |
"php5-gd", | |
"php5-curl", | |
"php5-xdebug", | |
"libapache2-mod-php5", | |
] | |
package { $packages: | |
ensure => latest, | |
require => [Exec['apt-get update'], Package['python-software-properties']] | |
} | |
file { "/etc/php5/apache2/php.ini": | |
ensure => present, | |
owner => root, group => root, | |
notify => Service['apache2'], | |
source => "puppet:///modules/php/php.ini", | |
require => [Package['php5'], Package['apache2']], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment