puppet: Support setting an ssl_mode verification level.

This commit is contained in:
Alex Vandiver
2022-03-10 20:07:50 +00:00
committed by Tim Abbott
parent 253bef27f5
commit d17006da55
6 changed files with 14 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class zulip::profile::postgresql {
$ssl_cert_file = zulipconf('postgresql', 'ssl_cert_file', undef)
$ssl_key_file = zulipconf('postgresql', 'ssl_key_file', undef)
$ssl_ca_file = zulipconf('postgresql', 'ssl_ca_file', undef)
$ssl_mode = zulipconf('postgresql', 'ssl_mode', undef)
file { $zulip::postgresql_base::postgresql_confdirs:
ensure => directory,

View File

@@ -796,6 +796,7 @@ restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"'
<% if @replication_primary != '' && @replication_user != '' -%>
primary_conninfo = 'host=<%= @replication_primary %> user=<%= @replication_user -%>
<% if @replication_password != '' %> password=<%= @replication_password %><% end -%>
<% if @ssl_mode != '' %> sslmode=<%= @ssl_mode %><% end -%>
'
<% end -%>
<% end -%>

View File

@@ -827,6 +827,7 @@ restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"'
<% if @replication_primary != '' && @replication_user != '' -%>
primary_conninfo = 'host=<%= @replication_primary %> user=<%= @replication_user -%>
<% if @replication_password != '' %> password=<%= @replication_password %><% end -%>
<% if @ssl_mode != '' %> sslmode=<%= @ssl_mode %><% end -%>
'
<% end -%>
<% end -%>

View File

@@ -848,6 +848,7 @@ restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"'
<% if @replication_primary != '' && @replication_user != '' -%>
primary_conninfo = 'host=<%= @replication_primary %> user=<%= @replication_user -%>
<% if @replication_password != '' %> password=<%= @replication_password %><% end -%>
<% if @ssl_mode != '' %> sslmode=<%= @ssl_mode %><% end -%>
'
<% end -%>
<% end -%>

View File

@@ -4,5 +4,6 @@ recovery_target_timeline = 'latest'
<% if @replication_primary != '' && @replication_user != '' -%>
primary_conninfo = 'host=<%= @replication_primary %> user=<%= @replication_user -%>
<% if @replication_password != '' %> password=<%= @replication_password %><% end -%>
<% if @ssl_mode != '' %> sslmode=<%= @ssl_mode %><% end -%>
'
<% end -%>