atlassian / terraform-provider-artifactory

Terraform provider to manage Artifactory
Apache License 2.0
89 stars 42 forks source link

Attempts to set `content_synchronisation` on every terraform apply #100

Closed spuder closed 3 years ago

spuder commented 3 years ago

Community Note

Terraform Version

Terraform v0.13.5
+ provider registry.terraform.io/jfrog/artifactory v2.2.4

Affected Resource(s)

Terraform Configuration Files

resource "artifactory_remote_repository" "read-only-mirror_rubygems_org" {
  key             = "read-only-mirror.rubygems.org"
  package_type    = "gems"
  repo_layout_ref = "simple-default"
  url             = "https://rubygems.org/"
  property_sets   = ["artifactory"]
  notes           = "managed by terraform"
}

On every terraform apply, it will attempt to set

    - content_synchronisation {
          - enabled = false -> null
        }

This makes for a lot of noise in the terraform apply (notice how 40 resources are going to be changed)


  # artifactory_remote_repository.read-only-mirror_rubygems_org will be updated in-place
  ~ resource "artifactory_remote_repository" "read-only-mirror_rubygems_org" {
        allow_any_host_auth                   = false
        blacked_out                           = false
        block_mismatching_mime_types          = true
        bypass_head_requests                  = false
        description                           = " (local file cache)"
        enable_cookie_management              = false
        enable_token_authentication           = false
        fetch_jars_eagerly                    = false
        fetch_sources_eagerly                 = false
        force_nuget_authentication            = false
        handle_releases                       = true
        handle_snapshots                      = true
        hard_fail                             = false
        id                                    = "read-only-mirror.rubygems.org"
        includes_pattern                      = "**/*"
        key                                   = "read-only-mirror.rubygems.org"
        max_unique_snapshots                  = 0
        missed_cache_period_seconds           = 1800
        notes                                 = "managed by terraform"
        offline                               = false
        package_type                          = "gems"
        property_sets                         = [
            "artifactory",
        ]
        remote_repo_checksum_policy_type      = "generate-if-absent"
        repo_layout_ref                       = "simple-default"
        retrieval_cache_period_seconds        = 7200
        share_configuration                   = false
        socket_timeout_millis                 = 15000
        store_artifacts_locally               = true
        suppress_pom_consistency_checks       = true
        synchronize_properties                = false
        unused_artifacts_cleanup_period_hours = 0
        url                                   = "https://rubygems.org/"
        xray_index                            = false

      - content_synchronisation {
          - enabled = false -> null
        }
    }

Plan: 0 to add, 40 to change, 0 to destroy.
spuder commented 3 years ago

Duplicate of https://github.com/jfrog/terraform-provider-artifactory/issues/13