diff --git a/lib/puppet_x/puppetlabs/tune/calculate.rb b/lib/puppet_x/puppetlabs/tune/calculate.rb index 84004de..f0c7bbe 100755 --- a/lib/puppet_x/puppetlabs/tune/calculate.rb +++ b/lib/puppet_x/puppetlabs/tune/calculate.rb @@ -84,7 +84,7 @@ def calculate_master_settings(node) # https://github.com/puppetlabs/puppet-enterprise-modules/blob/irving/modules/puppet_enterprise/manifests/profile/database.pp default_database_max_connections = 400 - percent_databse_connections = 1.10 + percent_database_connections = 1.10 settings = initialize_settings(node) @@ -223,7 +223,7 @@ def calculate_master_settings(node) if node['classes']['database'] && node['infrastructure']['compiler_connections'] if node['infrastructure']['compiler_connections'] > default_database_max_connections - settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_databse_connections).to_i + settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_database_connections).to_i end end @@ -302,7 +302,7 @@ def calculate_database_settings(node) # https://github.com/puppetlabs/puppet-enterprise-modules/blob/irving/modules/puppet_enterprise/manifests/profile/database.pp default_database_max_connections = 400 - percent_databse_connections = 1.10 + percent_database_connections = 1.10 settings = initialize_settings(node) @@ -314,7 +314,7 @@ def calculate_database_settings(node) if node['infrastructure']['compiler_connections'] if node['infrastructure']['compiler_connections'] > default_database_max_connections - settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_databse_connections).to_i + settings['params']['puppet_enterprise::profile::database::max_connections'] = (node['infrastructure']['compiler_connections'] * percent_database_connections).to_i end end