Commit Graph

7 Commits

Author SHA1 Message Date
Sean Chittenden
300ef2bc97 Add connect_timeout support to the PostgreSQL provider. 2016-12-10 12:32:19 +11:00
Sean Chittenden
3750bf7af2 Depreciate the PostgreSQL provider's ssl_mode option in favor of sslmode.
Both libpq(3) and github.com/lib/pq both use `sslmode`.  Prefer this vs
the non-standard `ssl_mode`.  `ssl_mode` is supported for compatibility
but should be removed in the future.

Changelog: yes
2016-12-10 12:32:19 +11:00
Sean Chittenden
a200899d93 Allow the PostgreSQL provider to talk to a non-default database. 2016-12-10 12:32:19 +11:00
Alexander Kyxap
f993f0e70e Added 'connect_timeout' argument to provider 'postgresql' (#10380) 2016-11-28 16:52:10 +00:00
Martin Atkins
220d73f32c provider/postgresql: default ssl_mode is "prefer"
According to the libpq documentation, "prefer" is the default in the
underlying library and so setting a different default in the Terraform
layer would be a breaking change for existing users of this provider
whose servers do not have TLS correctly configured.

The docs now link to the libpq manual's discussion of the security
implications of each of the ssl_mode options, so the user can understand
the limitations of the "prefer" default and can make an informed decision
about which setting is appropriate for their situation.
2016-04-17 08:32:02 -07:00
Xavier Sellier
fc9825e4c4 - Add support for 'ssl_mode' options present in lib/pq
- Update psotgresql provider's documentation
- Enforce default value to 'require' for ssl_mode
2016-04-11 13:20:39 -04:00
Adrian Chelaru
e1eef15646 postgresql provider with "database" and "role" resources 2015-12-03 23:44:20 -08:00