Sam Dunne
cb40a3ef14
Format code
2016-11-02 15:30:21 +00:00
Sam Dunne
5dbd9423cc
Update based off review
2016-11-02 14:36:39 +00:00
Sam Dunne
792a6c0232
Remove unused dependency
2016-10-05 09:32:10 +01:00
Sam Dunne
d073a90cb1
Create provisioner for postgresql extensions
...
This change adds support for installing postgresql extensions on a
postgresql server.
2016-10-04 16:32:28 +01:00
James Nugent
44af0d60df
provider/postgres: Fix acceptance tests
...
```
› PGSSLMODE=disable PGHOST=localhost PGUSER=postgres make testacc \
TEST=./builtin/providers/postgresql
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/05 15:39:23 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/postgresql -v -timeout 120m
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN TestAccPostgresqlDatabase_Basic
--- PASS: TestAccPostgresqlDatabase_Basic (0.53s)
=== RUN TestAccPostgresqlDatabase_DefaultOwner
--- PASS: TestAccPostgresqlDatabase_DefaultOwner (0.51s)
=== RUN TestAccPostgresqlRole_Basic
--- PASS: TestAccPostgresqlRole_Basic (0.11s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/postgresql 1.160s
```
2016-09-05 15:39:57 -07:00
James Nugent
34a17d3b46
provider/postgres: Correct casing -> PostgreSQL
2016-09-05 15:04:48 -07:00
James Nugent
006ab910b8
provider/postgres: Use standard environment vars
...
Previously the provider accepted non-standard environment variables. We
now accept the standard PGHOST/PGUSER/PGPASSWORD variables that psql
uses in addition the older ones.
2016-09-05 15:04:08 -07:00
James Nugent
260179543a
provider/postgres: Clean up definitions and errors
...
This commit brings the Postgres provider up to "new" standards for error
wrapping and nested structure definitions.
2016-09-05 14:46:40 -07: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
stack72
5fbec544d7
Fixing yet more gofmt errors with imports
2015-12-21 09:54:24 +00:00
Adrian Chelaru
e1eef15646
postgresql provider with "database" and "role" resources
2015-12-03 23:44:20 -08:00