-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
description field in nexus_role does not get updated in state #68
Comments
Hi @AliAllomani, this should be fixed with release v1.9.0. |
Hi @Nosmoht , I still get number of roles being touched all the time.
Regards, |
Hi @fog1985 , could you please provide a full Terraform file which we can use to reproduce this? With the current test i'm not able to reproduce it. |
Hi @Nosmoht ,
And those roles this role is referencing are defined in the same manner but they have privileges defined. Not the roles. So only this one main is referencing sub-roles. Regards, |
Hi @fog1985, i'm testing with the following code, which hopefully reflects your real code, but i'm not able to reproduce the behaviour. provider "nexus" {
url = "http://127.0.0.1:8081"
username = "admin"
password = "admin123"
}
resource "nexus_role" "npm_group_read" {
name = "npm-group-read"
privileges = ["nx-repository-view-npm-*-read"]
roleid = "npm-group-read"
}
resource "nexus_role" "docker_group_read" {
name = "docker-group-read"
privileges = ["nx-repository-view-docker-*-read"]
roleid = "docker-group-read"
}
resource "nexus_role" "maven_group_read" {
name = "maven-group-read"
privileges = ["nx-repository-view-maven2-*-read"]
roleid = "maven-group-read"
}
resource "nexus_role" "some_users" {
name = "some-users"
roles = [
nexus_role.npm_group_read.name,
nexus_role.docker_group_read.name,
nexus_role.maven_group_read.name,
]
roleid = "some-users"
} If this does not reflect your code, could you please modify it so i've something which brings up the change ? |
Hi @Nosmoht , please try to change this block:
To this one:
|
Hi @fog1985 , i did, but the result is as expected: No changes. Infrastructure is up-to-date. But i realized that provider "nexus" {
url = "http://127.0.0.1:8081"
username = "admin"
password = "admin123"
}
resource "nexus_role" "npm_group_read" {
name = "npm-group-read-name"
privileges = ["nx-repository-view-npm-*-read"]
roleid = "npm-group-read-id"
}
resource "nexus_role" "docker_group_read" {
name = "docker-group-read-name"
privileges = ["nx-repository-view-docker-*-read"]
roleid = "docker-group-read-id"
}
resource "nexus_role" "maven_group_read" {
name = "maven-group-read-name"
privileges = ["nx-repository-view-maven2-*-read"]
roleid = "maven-group-read-id"
}
resource "nexus_role" "role" {
name = "role-name"
roleid = "role-id"
description = "role-description"
}
resource "nexus_role" "SOME_USERS" {
roleid = "SOME_USERS"
name = "some-users"
description = "SOME_USERS role"
privileges = []
roles = [
nexus_role.npm_group_read.roleid,
nexus_role.docker_group_read.roleid,
nexus_role.maven_group_read.roleid,
]
} |
Ah. And one more I provide roles as a list of Ids as follow:
So not referring role's names based on their resources. But based on their IDs just as strings. |
And you still get changes all the time? |
I close this stale issue. Please reopen if this error still exists |
description field of nexus_role always shows changes to be applied when performing plan.
I noticed that the field is getting updated in nexus but not in the state file.
The text was updated successfully, but these errors were encountered: