-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When running a plan against an already existing local Alpine and Debian repository, the diff is showing changes, where project_environments
is going to be added. Even after applying, the diff doesn't change (ignore keypair_ref
attribute, that is something I am trying to add)
Part of diff that shows Alpine
Part of diff that shows Debian
Requirements for and issue
- A description of the bug
- A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
resource "artifactory_keypair" "some-keypairGPG1" {
pair_name = "some-keypair${random_id.randid.id}"
pair_type = "GPG"
alias = "foo-alias1"
private_key = file("samples/gpg.priv")
public_key = file("samples/gpg.pub")
lifecycle {
ignore_changes = [
private_key,
passphrase,
]
}
}
resource "artifactory_local_debian_repository" "my-debian-repo" {
key = "my-debian-repo"
primary_keypair_ref = artifactory_keypair.some-keypairGPG1.pair_name
index_compression_formats = ["bz2", "lzma", "xz"]
trivial_layout = true
depends_on = [artifactory_keypair.some-keypairGPG1]
}
resource "artifactory_keypair" "some-keypairRSA" {
pair_name = "some-keypair"
pair_type = "RSA"
alias = "foo-alias"
private_key = file("samples/rsa.priv")
public_key = file("samples/rsa.pub")
lifecycle {
ignore_changes = [
private_key,
passphrase,
]
}
}
resource "artifactory_local_alpine_repository" "terraform-local-test-alpine-repo-basic" {
key = "terraform-local-test-alpine-repo-basic"
primary_keypair_ref = artifactory_keypair.some-keypairRSA.pair_name
depends_on = [artifactory_keypair.some-keypairRSA]
}
- Your version of artifactory (you can
curl
it at$host/artifactory/api/system/version
:7.98.13
- Your version of terraform:
1.98
- Your version of terraform provider:
12.8.3/12.8.4
Expected behavior
project_environments
shouldn't ever appear in the diff when not being set
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working