Puppet Class: php::mysqlnd_ms

Inherits:
php::params
Defined in:
manifests/mysqlnd_ms.pp

Overview

concat mysqlndms.conf

00 base 10 datasources 99 end

Parameters:

  • priority (Any) (defaults to: '10')
  • lazy_connections (Any) (defaults to: true)
  • master_on_write (Any) (defaults to: true)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'manifests/mysqlnd_ms.pp', line 7

class php::mysqlnd_ms(
                        $priority         = '10',
                        $lazy_connections = true,
                        $master_on_write  = true,
                      ) inherits php::params {

  include ::php::mysqlnd

  php::pecl { 'mysqlnd_ms':
    manage_ini => false,
  }

  file { "${php::params::confbase}/mods-available/mysqlnd_ms.ini":
    ensure  => 'absent',
    require => Php::Pecl['mysqlnd_ms'],
  }

  concat { "${php::params::confbase}/mysqlndms.conf":
    ensure  => 'present',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    require => Php::Pecl['mysqlnd_ms'],
  }

  concat::fragment{ "${php::params::confbase}/mysqlndms.conf nd_ms base":
    target  => "${php::params::confbase}/mysqlndms.conf",
    order   => '00',
    content => "{\n",
  }

  concat::fragment{ "${php::params::confbase}/mysqlndms.conf nd_ms end":
    target  => "${php::params::confbase}/mysqlndms.conf",
    order   => '99',
    content => template("${module_name}/mysqlnd/ms/end.erb")
  }


}