puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

Still trouble setting the new PHP configuration folders

Open jimmykane opened this issue 10 years ago • 2 comments

Still having trouble configuring PHP new config location

If setting an ini then the above solution fails due to ini.pp :

# = Define: php::ini
#
define php::ini (
    $value       = '',
    $template    = 'extra-ini.erb',
    $target      = 'extra.ini',
    $service     = $php::service,
    $config_dir  = $php::config_dir
) {

  include php

  file { "${config_dir}/conf.d/${target}":
    ensure  => 'present',
    content => template("php/${template}"),
    require => Package['php'],
    notify  => Service[$service],
  }

  file { "${config_dir}/cli/conf.d/${target}":
    ensure  => 'present',
    content => template("php/${template}"),
    require => Package['php'],
  }

}

As you can see setting the above config to apache2 will excpect for cli to be apache2/cli/conf.d/ etc

Also the conf define does not support variables as far as I can see.

jimmykane avatar Jan 20 '14 14:01 jimmykane