Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Add sslmode property to pg_sqitch resource
Browse files Browse the repository at this point in the history
Signed-off-by: Zane Geiger <zane.geiger@relativity.com>
  • Loading branch information
zanecodes committed Mar 4, 2019
1 parent 276633f commit a0e1c46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def whyrun_supported?
EOM
environment "PERL5LIB" => "", # force us to use omnibus perl
"PGPASSWORD" => new_resource.password,
"PGSSLMODE" => node['pushy']['postgresql']['sslmode']
"PGSSLMODE" => new_resource.sslmode

# Sqitch Return Codes
# 0 - when changes are applied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@
username push_attrs['db_superuser']
password PushServer::Secrets.veil.get('postgresql', 'db_superuser_password')
database database_name
sslmode push_attrs['sslmode']
end
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
attribute :password, kind_of: String, required: false, default: ""
attribute :target_version, kind_of: String
attribute :hostname, kind_of: String, required: true
attribute :port, kind_of: Integer, required: true
attribute :port, kind_of: Integer, required: true
attribute :sslmode, kind_of: String, required: false, default: "prefer"

0 comments on commit a0e1c46

Please sign in to comment.