group => root,
mode => 0644,
content => "${key}=${value}\n",
+ require => File["${::php::folder}/${sapi}"],
notify => $sapi ? {
'apache2' => Service['apache2'],
default => undef,
"puppet:///modules/php/apache2/php.${::operatingsystem}.ini",
"puppet:///modules/php/apache2/php.ini" ],
notify => Service['apache2'],
- require => [ Package['php5'], File["${folder}/etc/php5/apache2'] ],
+ require => [ Package['php5'], File["${folder}/etc/php5/apache2"] ],
}
+
+ include php::resources
}
--- /dev/null
+class php::resources {
+ $configs = hiera('php::config', {})
+
+ # Apply instances
+ create_resources('php::config', $configs)
+}