Skip to content

Commit

Permalink
[minor_change] Added insecure flag on the GitHub workflows and update…
Browse files Browse the repository at this point in the history
…d nd_site resource doc
  • Loading branch information
sajagana committed Oct 29, 2024
1 parent f9ec75d commit 7becfe8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'}}
Expand Down
10 changes: 8 additions & 2 deletions docs/resources/site.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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"
```

0 comments on commit 7becfe8

Please sign in to comment.