diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 20:56:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 20:56:29 -0300 |
commit | fe61dafbc534ff5a0d0c67f99f2da124d9116120 (patch) | |
tree | a6d0fdbe925d4107e270ce4cbcbc64df5b1d9505 /manifests | |
parent | 0a7b9ce22e13e0c9170d8faf4968d21618b340ca (diff) | |
download | puppet-database-master.tar.gz puppet-database-master.tar.bz2 |
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 90b1342..934601d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -27,23 +27,23 @@ class database { # Avoid Errcode: 24 database::config { 'open-files-limit': - value => hiera('database::open-files-limit', '500000'), + value => lookup('database::open-files-limit', undef, undef, '500000'), } database::config { - 'query_cache_size': value => hiera('database::query_cache_size', '64M'); - 'query_cache_limit': value => hiera('database::query_cache_limit', '2M'); - 'join_buffer_size': value => hiera('database::join_buffer_size', '256K'); - 'key_buffer_size': value => hiera('database::key_buffer_size', '32M'); - 'tmp_table_size': value => hiera('database::tmp_table_size', '64M'); - 'max_heap_table_size': value => hiera('database::max_heap_table_size', '64M'); - 'innodb_buffer_pool_size': value => hiera('database::innodb_buffer_pool_size', '256M'); - 'table_open_cache': value => hiera('database::table_open_cache', '800'); + 'query_cache_size': value => lookup('database::query_cache_size', undef, undef, '64M'); + 'query_cache_limit': value => lookup('database::query_cache_limit', undef, undef, '2M'); + 'join_buffer_size': value => lookup('database::join_buffer_size', undef, undef, '256K'); + 'key_buffer_size': value => lookup('database::key_buffer_size', undef, undef, '32M'); + 'tmp_table_size': value => lookup('database::tmp_table_size', undef, undef, '64M'); + 'max_heap_table_size': value => lookup('database::max_heap_table_size', undef, undef, '64M'); + 'innodb_buffer_pool_size': value => lookup('database::innodb_buffer_pool_size', undef, undef, '256M'); + 'table_open_cache': value => lookup('database::table_open_cache', undef, undef, '800'); } # Renamed to table_open_cache database::config { 'table_cache': - value => hiera('database::table_cache', '800'), + value => lookup('database::table_cache', undef, undef, '800'), ensure => absent, } } |