diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1ad3b68..222e769 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -62,6 +62,7 @@ jobs: nd_host: - name: v3.1 url: "https://173.36.219.35/" + insecure: true steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -78,6 +79,7 @@ jobs: TF_ACC_STATE_LINEAGE: "1" ND_VAL_REL_DN: false ND_URL: ${{ matrix.nd_host.url }} + ND_INSECURE: ${{ matrix.nd_host.insecure }} - name: Upload coverage to Codecov # Upload Coverage on latest only if: ${{ matrix.nd_host.name == 'v3.1'}} diff --git a/docs/resources/site.md b/docs/resources/site.md index 7f4cd43..8dc27fb 100644 --- a/docs/resources/site.md +++ b/docs/resources/site.md @@ -70,11 +70,11 @@ All examples for the Site resource can be found in the [examples](https://github ## Importing -~> The details for `username`, `password`, and `login_domain` will be set to `null` when the `nd_site` resource imports an already registered site from the Nexus Dashboard. Modifying the `username`, `password`, and `login_domain` will not update the imported site configuration on the Nexus Dashboard. - An existing Site can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its name (name), via the following command: +``` terraform import nd_site.example {name} +``` Starting in Terraform version 1.5, an existing Site can be imported using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration: @@ -84,3 +84,9 @@ import { to = nd_site.example } ``` + +~> The values for `username`, `password`, and `login_domain` attributes will not be imported when the nd_site resource imports an already registered site from the Nexus Dashboard. Use the `-replace` option to change the `username`, `password`, and `login_domain` attributes for the imported site. + +``` +terraform apply -replace="nd_site.example" +```