Skip to content

Instantly share code, notes, and snippets.

@trq
Created August 20, 2013 23:25
Show Gist options
  • Save trq/6288643 to your computer and use it in GitHub Desktop.
Save trq/6288643 to your computer and use it in GitHub Desktop.
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