Mercurial > repos > other > Puppet
annotate modules/mysql/manifests/client.pp @ 454:d0e7979c7e8c
Update PHP configs for Ubuntu
Mostly fixing some INI naming so that it is consistent
between packages and what we write (so we don't end up with
mixed/duplicate content)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 13 Aug 2023 15:26:37 +0100 |
parents | c6c9a2cfcfbd |
children |
rev | line source |
---|---|
244 | 1 # @summary |
2 # Installs and configures the MySQL client. | |
3 # | |
4 # @example Install the MySQL client | |
5 # class {'::mysql::client': | |
6 # package_name => 'mysql-client', | |
7 # package_ensure => 'present', | |
8 # bindings_enable => true, | |
9 # } | |
10 # | |
11 # @param bindings_enable | |
12 # Whether to automatically install all bindings. Valid values are `true`, `false`. Default to `false`. | |
13 # @param install_options | |
14 # Array of install options for managed package resources. You must pass the appropriate options for the package manager. | |
15 # @param package_ensure | |
16 # Whether the MySQL package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. | |
17 # @param package_manage | |
18 # Whether to manage the MySQL client package. Defaults to `true`. | |
19 # @param package_name | |
20 # The name of the MySQL client package to install. | |
443 | 21 # @param package_provider |
22 # Specify the provider of the package. Optional. Valid value is a String. | |
23 # @param package_source | |
24 # Specify the path to the package source. Optional. Valid value is a String | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
25 # |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 class mysql::client ( |
443 | 27 Boolean $bindings_enable = $mysql::params::bindings_enable, |
28 Optional[Array[String[1]]] $install_options = undef, | |
29 Variant[Enum['present','absent'], Pattern[/(\d+)[\.](\d+)[\.](\d+)/]] $package_ensure = $mysql::params::client_package_ensure, | |
30 Boolean $package_manage = $mysql::params::client_package_manage, | |
31 String[1] $package_name = $mysql::params::client_package_name, | |
32 Optional[String[1]] $package_provider = undef, | |
33 Optional[String[1]] $package_source = undef, | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
34 ) inherits mysql::params { |
389 | 35 include 'mysql::client::install' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
36 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
37 if $bindings_enable { |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
38 class { 'mysql::bindings': |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
39 java_enable => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
40 perl_enable => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
41 php_enable => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
42 python_enable => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
43 ruby_enable => true, |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
44 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
45 } |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
46 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
47 # Anchor pattern workaround to avoid resources of mysql::client::install to |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
48 # "float off" outside mysql::client |
244 | 49 anchor { 'mysql::client::start': } |
50 -> Class['mysql::client::install'] | |
51 -> anchor { 'mysql::client::end': } | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
52 } |