Commit Graph

88 Commits (03f6c650ca9e78fc0d80d430ca1ec2a52c262da4)

Author SHA1 Message Date
julius-bonial 5d8662d5da fix wrong usage of hashicorp/errwrap (#11500)
9 years ago
Radek Simko 4f7f048f76 provider/postgresql: Fix failing acceptance test (#11375)
9 years ago
Sean Chittenden 4278c615af
Follow up to #11161 to fix `connection_limit` updates to a ROLE.
9 years ago
Sean Chittenden 864c7691b1 Merge pull request #11165 from hashicorp/b-11161
9 years ago
Sean Chittenden 9201265395
Add a test to make sure the implied `connection_limit` default of `-1` is always set.
9 years ago
pbthorste 11f680a88e remove computed true for postgres connections
9 years ago
pbthorste 0c1175f78b set default postgres connection limit
9 years ago
Sean Chittenden a96f7408dd
Fix a few small grammar nits.
9 years ago
Sean Chittenden 152b0b1ff6
Fix compile: return a string, not an error to `errwrap`
9 years ago
Sean Chittenden 4919f16cca
Use `fmt.Fprint()` instead of `Fprintf()`.
9 years ago
Sean Chittenden 4570460f4e
Audit all call sites where `fmt.Errorf()` was being used and switch to errwrap.
9 years ago
Sean Chittenden 9ab60ecc7b
Add an Exists function for each resource type. Also add a provider RWMutex.
9 years ago
James Nugent 15e58310bd provider/postgres: Ignore temporary Postgres data
9 years ago
James Nugent 97420f523c provider/postgres: Allow brew installed postgresql
9 years ago
Sean Chittenden 73be4bc21f
Remove old docs. Update docs and code to support the PUBLIC role.
9 years ago
Sean Chittenden c3a3ddc0f5
Return an empty string if no value was provided.
9 years ago
Sean Chittenden 7d19fcae25
Improve a bit more upon work done in #10922 and only return a quoted
9 years ago
Sean Chittenden d92a3caedf
Before revoking a privilege from a schema, check to ensure role exists.
9 years ago
Sean Chittenden 6c91676c40
Comment out the role that gets dropped before the schema's policies are
9 years ago
Sean Chittenden ed7511e004
Add a small note re: needing `-test.parallel=1` when running PG tests.
9 years ago
Sean Chittenden 38928b91ba
Update the postgresql_schema resource to accept policies.
9 years ago
Sean Chittenden 897609878f
Automatically perform a `REASSIGN OWNED` and `DROP OWNED BY` when
9 years ago
Sean Chittenden 6e200c98d0
Use the right verb for errors.
9 years ago
Sean Chittenden ebc81727da
Add the postgresql_schema_policy resource. This is a WIP due to
9 years ago
Sean Chittenden de6dcbd8cd
Add the `owner` attribute to the `postgresql_schema` resource.
9 years ago
Sean Chittenden 1d60e9ab04
Clean up the description on postgresql_database.owner.
9 years ago
Sean Chittenden d673a0b532
Properly escape DSN parameters.
9 years ago
Igor Dubinskiy 56a1ea9012 provider/postgresql: Quote connection string parameters
9 years ago
Sean Chittenden 56a193f228
Dept of second thoughts: remove authorization support before 0.8
9 years ago
Sean Chittenden ce60c4fede
gofmt cleanup on imports.
9 years ago
Sean Chittenden 2ecd42c0be
Remove non-standard environment variables in prep for 0.8.
9 years ago
Sean Chittenden 6ed37770c3
Add the testing Makefile that I'm using for testing the provider locally.
9 years ago
Sean Chittenden 8c41f0859b
Add the version attribute to postgresql_extension.
9 years ago
Sean Chittenden a4965c01af
Fix up helpers.
9 years ago
Sean Chittenden c602f024f4
Fix the remaining `postgresql_extension` unit test.
9 years ago
Sean Chittenden daa951434f
Teach postgresql_extension about schemas.
9 years ago
Sean Chittenden d1c9ebb6c2
Add PostgreSQL schema support
9 years ago
Sean Chittenden 1a93309e50
Expand postgresql_role support to include all known options.
10 years ago
Sean Chittenden 4c6c52ee8d
Nuke some whitespace.
10 years ago
Sean Chittenden 6deb61b0cf
Enable import support for PostgreSQL's extensions.
10 years ago
Sean Chittenden e36827c5fe
Change the default for `valid_until` to `infinity` to match the default.
10 years ago
Sean Chittenden e9dc92c18d
Change the default for `inherit` from `false` to `true` to match PostgreSQL.
10 years ago
Sean Chittenden b576a3eda1
Rename variable from `roleSuperUserAttr` to `roleSuperuserAttr`.
10 years ago
Sean Chittenden 15cd542392
Remove a duplicate `connect_timeout` from a rebase+stash.
10 years ago
Sean Chittenden e2448473cb
Clean up the DatabaseCreate call.
10 years ago
Sean Chittenden db5d7b0438
Style nit
10 years ago
Sean Chittenden bfc2a2d42f
Commit WIP re: updated postgresql_role provider.
10 years ago
Sean Chittenden 2e529146a5
Remove unused code.
10 years ago
Sean Chittenden 6b540ecb55
Don't use d.GetOk() when the zero value is a required attribute.
10 years ago
Sean Chittenden 37fdc958b3
Always remove the IS_TEMPLATE attribute before dropping a database.
10 years ago