]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Per host and domain php.ini
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Feb 2012 17:33:08 +0000 (15:33 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Feb 2012 17:33:08 +0000 (15:33 -0200)
manifests/init.pp

index 9961db3af7da468f2c1d723d7c3a1cbfe2c29c04..998616c07d6cbc7a3c43f5d781e995b4691380d3 100644 (file)
@@ -34,7 +34,9 @@ class php {
     owner   => root,
     group   => root,
     mode    => 0644,
-    source  => "puppet://$server/modules/php/cli/php.ini",
+    source  => [ "puppet://$server/modules/site-php/cli/$fqdn/php.ini",
+                 "puppet://$server/modules/site-php/cli/$domain/php.ini",
+                 "puppet://$server/modules/php/cli/php.ini" ]
     require => Package['php5-cli'],
   }
 
@@ -43,7 +45,9 @@ class php {
     owner   => root,
     group   => root,
     mode    => 0644,
-    source  => "puppet://$server/modules/php/apache2/php.ini",
+    source  => [ "puppet://$server/modules/site-php/apache2/$fqdn/php.ini",
+                 "puppet://$server/modules/site-php/apache2/$domain/php.ini",
+                 "puppet://$server/modules/php/apache2/php.ini" ]
     notify  => Service['apache2'],
     require => Package['php5'],
   }