profile
viewpoint
Cyril Gaudin cyrilgdn Edgelaboratories

cyrilgdn/AIS.py 0

Python interface for the Swisscom All-in Signing Service

cyrilgdn/alpine-rabbitmq-autocluster 0

RabbitMQ image with the autocluster plugin

cyrilgdn/bank-statement-reconcile 0

Odoo Bank Statements Tasks (reconciliation, completion,...)

cyrilgdn/campoy.cat 0

Generic personal webpage with a list of links to other resources.

cyrilgdn/carrier-delivery 0

Odoo Carriers And Deliveries Management

cyrilgdn/consul 0

Service Discovery and Configuration Made Easy

cyrilgdn/crm 0

Odoo CRM, Mail & Newsletter advanced features

cyrilgdn/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

cyrilgdn/docker-graphite-statsd 0

Official Docker image for Graphite

push eventcyrilgdn/terraform-provider-postgresql

Andrew Z Allen

commit sha 0664d3a656975dd8c09aa4d06ad96dbebc0dc0ac

Update README.md to point to correct repo (#162)

view details

push time in 4 days

PullRequestReviewEvent
PullRequestReviewEvent

delete branch cyrilgdn/terraform-provider-rabbitmq

delete branch : test-pr

delete time in a month

create barnchcyrilgdn/terraform-provider-rabbitmq

branch : test-pr

created branch time in a month

create barnchcyrilgdn/terraform-provider-postgresql

branch : test-pr

created branch time in a month

issue commentcyrilgdn/terraform-provider-postgresql

Not able to create role on azure "Azure Database for PostgreSQL server"

@hadiulla According to your screenshot and your initial message, you removed the username (auopygnyva) instead of the hostname (pkpxcbudgv)

This should be:

provider "postgresql" {
  host            = "pkpxcbudgv.postgres.database.azure.com"
  port            = 5432
  database        = "my-db-090"
  username        = "auopygnyva"
  password        = "PASSWORD_HERE"
  sslmode         = "require"
  connect_timeout = 15
}

You can first test it with:

psql "host=pkpxcbudgv.postgres.database.azure.com port=5432 dbname=my-db-090 user=auopygnyva sslmode=require"
hadiulla

comment created time in a month

issue commentcyrilgdn/terraform-provider-postgresql

Not able to create role on azure "Azure Database for PostgreSQL server"

Hi @hadiulla ,

Is your SQL database linked to an Active Directory for authentication?

If no, you should not add the @pkpxcbudgv part in the username. (I just created a simple Postgresql database on Azure with postgres as admin username and I just need to set username = "postgres" in the Terraform configuration)

If yes, you may need to set the database_username setting too, for example, with a database created with Terraform, configuration looks like:

provider "postgresql" {
  host = azurerm_postgresql_server.postgres.fqdn
  port = 5432
  database = azurerm_postgresql_database.postgres.name
  username = format( "%s@%s", azurerm_postgresql_server.postgres.administrator_login, azurerm_postgresql_server.postgres.fqdn )
  database_username = azurerm_postgresql_server.postgres.administrator_login
  password = azurerm_postgresql_server.postgres.administrator_login_password
  sslmode = "require"
  superuser = false
}

Let me know if it helps!

hadiulla

comment created time in a month

issue closedcyrilgdn/terraform-provider-rabbitmq

Not able to create vhost in cloudampq rabbitmq

I tried to create vhost using this provider but I am not able to.

provider "rabbitmq" {
  endpoint = "https://xxxxxxxx.xxxxx.cloudamqp.com"
  username = "lxlxlxlxlx"
  password = "dxdxdxdxdxdxdxdxdxd"
}

# Create a virtual host
resource "rabbitmq_vhost" "vhost_1" {
  name = "qa"
}

Error: Put "https://xxxxxxxx.xxxxx.cloudamqp.com": EOF

Also, I used cloudampq rabbitmq's endpoint. Is it compatible with this provider?

closed time in a month

vrathore18

issue commentcyrilgdn/terraform-provider-rabbitmq

Not able to create vhost in cloudampq rabbitmq

I allow myself to close this issue. Feel free to open it back if the problem still occurs.

vrathore18

comment created time in a month

issue closedcyrilgdn/terraform-provider-rabbitmq

Feature request : Operator policy

Hi,

I may have missed it but I didn't find a way to declare an operator policy If it's not already available, it would be a nice addition to this provider

Many thanks for this provider :)

closed time in a month

MrLuje

issue closedcyrilgdn/terraform-provider-rabbitmq

Can not use this provider

This configuration taken from the documentation doesn't work:

provider "rabbitmq" {
  endpoint = "http://${var.mq_host}" # Management endpoint
  username = var.mq_user
  password = var.mq_password
}

Causing the following error:

│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider
│ hashicorp/rabbitmq: provider registry registry.terraform.io does not have a
│ provider named registry.terraform.io/hashicorp/rabbitmq
│
│ Did you intend to use cyrilgdn/rabbitmq? If so, you must specify that
│ source address in each module which requires that provider. To see which
│ modules are currently depending on hashicorp/rabbitmq, run the following
│ command:
│     terraform providers

If I change the provider definition to the following:

provider "rabbitmq" {
  source = "cyrilgdn/rabbitmq"
  endpoint = "http://${var.mq_host}" # Management endpoint
  username = var.mq_user
  password = var.mq_password
}

I get another error:

│ Error: Reserved argument name in provider block
│
│   on ../../main.tf line 2, in provider "rabbitmq":
│    2:   source = "cyrilgdn/rabbitmq"
│
│ The provider argument name "source" is reserved for use by Terraform in a
│ future version.

How to use this provider?

closed time in a month

speller

pull request commentcyrilgdn/terraform-provider-postgresql

feat: Added column level access

@kda-jt I triggered the tests and will take a look as soon as possible.

Thanks for your work on that :+1:

kda-jt

comment created time in a month

push eventcyrilgdn/terraform-provider-postgresql

kent.io

commit sha 295126ddada0a07ec542d65c93f66fc8ba7e040a

typo (#154)

view details

push time in a month

PullRequestReviewEvent

issue closedcyrilgdn/terraform-provider-postgresql

v1.13.0: Terraform plan fails with "could not get advisory lock for role ..."

Hello and thank you @cyrilgdn for maintaining this terraform provider!

We are running AWS RDS Postgres 11.11 and I'm trying to migrate to cyrilgdn/postgresql from an older terraform-providers/postgresql.

The issue is that terraform plan with v1.13.0 almost always fails with (the number of errors are varies):

│ Error: could not get advisory lock for role sasquatch-alembic: pq: canceling statement due to statement timeout
│
│   with module.prclt_databases.module.rds_instance_sasquatch.postgresql_default_privileges.this["sasquatch-sasquatch_ro"],
│   on ../../../modules/percolate-postgres/main.tf line 179, in resource "postgresql_default_privileges" "this":
│  179: resource "postgresql_default_privileges" "this" {

| Error: could not get advisory lock for role webhook-alembic: pq: canceling statement due to statement timeout
│
│   with module.prclt_databases.module.rds_instance_webhook[0].postgresql_default_privileges.this["webhook-webhook_ro"],
│   on ../../../modules/percolate-postgres/main.tf line 179, in resource "postgresql_default_privileges" "this":
│  179: resource "postgresql_default_privileges" "this" {
...

It looks stable with the previous version 1.12.1 (plan succeeds every time), so I tend to blame https://github.com/cyrilgdn/terraform-provider-postgresql/pull/80 (the only change in-between).

Terraform Version

Terraform v1.0.1
on darwin_amd64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.13.0
...

Affected Resource(s)

Failing on:

  • postgresql_default_privileges

Terraform Configuration Files

resource "postgresql_default_privileges" "this" {
  for_each = { map of user role / grant / database }

  provider    = postgresql
  database    = postgresql_database.application[each.value.database].name
  role        = postgresql_role.this[each.value.role].name
  schema      = "public"
  object_type = "table"
  owner       = postgresql_role.this["${var.service_name}-alembic"].name
  privileges  = each.value.grant
}

closed time in a month

antonblr

issue commentcyrilgdn/terraform-provider-postgresql

v1.13.0: Terraform plan fails with "could not get advisory lock for role ..."

Should be fixed by #123 released in v1.14.0.

Feel free to comment if it's not the case.

antonblr

comment created time in a month

push eventcyrilgdn/terraform-provider-postgresql

Cyril Gaudin

commit sha affaabc7a3e993cdc82fb15925e190b5fb6300db

Update doc for postgresql_grant_role (#151)

view details

push time in a month

delete branch cyrilgdn/terraform-provider-postgresql

delete branch : update-doc

delete time in a month

issue closedcyrilgdn/terraform-provider-postgresql

Set `Computed: true` for `roles` attribute on `postgresql_role`

Hi there,

Thank you for opening an issue. Please provide the following information:

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Terraform v0.14.10
+ provider registry.terraform.io/cyrilgdn/postgresql v1.12.1
+ provider registry.terraform.io/hashicorp/aws v3.39.0

Affected Resource(s)

Please list the resources as a list, for example:

  • postgresql_role
  • postgresql_grant_role

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "postgresql_role" "db" {
  name = var.db_role

  lifecycle {
    ignore_changes = [
      roles,
    ]
  }
}

# Elsewhere
resource "postgresql_grant_role" iam_auth" {
  role = var.db_role
  grant_role = "rds_iam"
}

I would like to be able to manage the role and the grants together in Terraform. The documentation for postgresql_grant_role says that it should not be used with postgresql_role because it will lead to a perpetual diff. I believe this can be resolved if you set the roles attribute in postgresql_role to have Computed: true. If the attribute is not set, it will simply read whatever is returned from the database, and I can do away with the ignore_changes.

closed time in a month

lawliet89

push eventcyrilgdn/terraform-provider-postgresql

Cyril Gaudin

commit sha 14446edc720c69d548082a9cfca959c9aa8faec7

Update doc for postgresql_grant_role

view details

push time in a month

push eventcyrilgdn/terraform-provider-postgresql

Cyril Gaudin

commit sha 4a6080a910f71c7c9a86ebdce9a5d78261af9551

Update doc for postgresql_grant_role

view details

push time in a month

more