|
56 | 56 | $confdir = $puppetdb::params::confdir, |
57 | 57 | $manage_firewall = $puppetdb::params::manage_firewall, |
58 | 58 | $java_args = $puppetdb::params::java_args, |
| 59 | + $merge_default_java_args = $puppetdb::params::merge_default_java_args, |
59 | 60 | $max_threads = $puppetdb::params::max_threads, |
60 | 61 | $command_threads = $puppetdb::params::command_threads, |
61 | 62 | $store_usage = $puppetdb::params::store_usage, |
|
235 | 236 | } |
236 | 237 |
|
237 | 238 | if !empty($java_args) { |
238 | | - create_resources( |
239 | | - 'ini_subsetting', |
240 | | - puppetdb_create_subsetting_resource_hash( |
241 | | - $java_args, |
242 | | - { ensure => present, |
243 | | - section => '', |
244 | | - key_val_separator => '=', |
245 | | - path => $puppetdb::params::puppetdb_initconf, |
246 | | - setting => 'JAVA_ARGS', |
247 | | - require => Package[$puppetdb_package], |
248 | | - notify => Service[$puppetdb_service], |
249 | | - }) |
250 | | - ) |
| 239 | + if $merge_default_java_args { |
| 240 | + create_resources( |
| 241 | + 'ini_subsetting', |
| 242 | + puppetdb_create_subsetting_resource_hash( |
| 243 | + $java_args, |
| 244 | + {ensure => present, |
| 245 | + section => '', |
| 246 | + key_val_separator => '=', |
| 247 | + path => $puppetdb::params::puppetdb_initconf, |
| 248 | + setting => 'JAVA_ARGS', |
| 249 | + require => Package[$puppetdb_package], |
| 250 | + notify => Service[$puppetdb_service], |
| 251 | + })) |
| 252 | + } else { |
| 253 | + ini_setting {'java_args': |
| 254 | + ensure => present, |
| 255 | + section => '', |
| 256 | + path => $puppetdb::params::puppetdb_initconf, |
| 257 | + setting => 'JAVA_ARGS', |
| 258 | + require => Package[$puppetdb_package], |
| 259 | + notify => Service[$puppetdb_service], |
| 260 | + value => puppetdb_flatten_java_args($java_args), |
| 261 | + } |
| 262 | + } |
251 | 263 | } |
252 | 264 |
|
253 | 265 | service { $puppetdb_service: |
|
0 commit comments