diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-04-07 22:37:37 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-04-07 22:37:37 +0000 |
commit | e10aaf397922a86dfbf6dcb6628e55d41c24e95c (patch) | |
tree | 8ee31c28b87bffd56a6f217853b415d8d2bbd0ba /modules/php/manifests/init.pp | |
parent | 1ea836a3f707cfdaf3e15fc20479470b9901bce2 (diff) | |
download | puppet-e10aaf397922a86dfbf6dcb6628e55d41c24e95c.tar puppet-e10aaf397922a86dfbf6dcb6628e55d41c24e95c.tar.gz puppet-e10aaf397922a86dfbf6dcb6628e55d41c24e95c.tar.bz2 puppet-e10aaf397922a86dfbf6dcb6628e55d41c24e95c.tar.xz puppet-e10aaf397922a86dfbf6dcb6628e55d41c24e95c.zip |
add php module
Diffstat (limited to 'modules/php/manifests/init.pp')
-rw-r--r-- | modules/php/manifests/init.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/php/manifests/init.pp b/modules/php/manifests/init.pp new file mode 100644 index 00000000..56477df1 --- /dev/null +++ b/modules/php/manifests/init.pp @@ -0,0 +1,26 @@ +class php { + class base { + $php_sender_email = "root@$domain" + + package {"php-ini": + ensure => installed, + } + + file { "/etc/php.ini": + ensure => present, + owner => root, + group => root, + mode => 755, + require => Package['php-ini'], + content => template('php/php.ini'), + } + } + + class php_cli inherits base { + package {"php-cli": + ensure => installed, + } + } + + # if you want to use apache-mod_php, include apache::mod_php +} |