File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 35
35
mode => ' 0640' ,
36
36
}
37
37
38
+ if $foreman::use_foreman_service {
39
+ $db_pool = max($foreman::db_pool , $foreman::foreman_service_puma_threads_max )
40
+ } else {
41
+ $db_pool = $foreman::db_pool
42
+ }
43
+
38
44
file { '/etc/foreman/database.yml' :
39
45
owner => ' root' ,
40
46
group => $foreman::group ,
Original file line number Diff line number Diff line change 83
83
#
84
84
# $db_root_cert:: Root cert used to verify SSL connection to postgres
85
85
#
86
- # $db_pool:: Database 'production' size of connection pool
86
+ # $db_pool:: Database 'production' size of connection pool. When running as a reverse proxy,
87
+ # the value of `$foreman_service_puma_threads_max` is used if it's higher than `$db_pool`.
87
88
#
88
89
# $db_manage_rake:: if enabled, will run rake jobs, which depend on the database
89
90
#
Original file line number Diff line number Diff line change 27
27
<% unless (password = scope.lookupvar("::foreman::db_password")) == 'UNSET' -%>
28
28
password: "<%= password %> "
29
29
<% end -%>
30
- <% unless (pool = scope.lookupvar("::foreman::db_pool")) == 'UNSET' -%>
31
- pool: <%= pool %>
32
- <% end -%>
30
+ pool: <%= @db_pool %>
You can’t perform that action at this time.
0 commit comments