Skip to content

Commit

Permalink
feat: Update provider to work with Netbox 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Mar 17, 2022
1 parent a2dac32 commit 6327700
Show file tree
Hide file tree
Showing 938 changed files with 77,493 additions and 33,284 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.16.x' ]
go: [ '1.17.x' ]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3.0.0
with:
fetch-depth: 0

Expand All @@ -34,7 +34,7 @@ jobs:
shell: bash

- name: Go installation
uses: actions/setup-go@v2.1.5
uses: actions/setup-go@v3.0.0
with:
go-version: ${{ matrix.go }}

Expand All @@ -45,7 +45,7 @@ jobs:
shell: bash

- name: Commit changes
uses: EndBug/add-and-commit@v7.5.0
uses: EndBug/add-and-commit@v8.0.2
with:
add: 'netbox'
author_name: smutel
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.16.x' ]
go: [ '1.17.x' ]
steps:
- name: Check conventional commits in PR
uses: Namchee/conventional-pr@v0.8.0
uses: Namchee/conventional-pr@v0.9.0
with:
access_token: ${{ secrets.github_token }}
label: "no-conventional-commits"
Expand All @@ -22,7 +22,7 @@ jobs:
strict: false

- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3.0.0
with:
fetch-depth: 0

Expand All @@ -42,7 +42,7 @@ jobs:
shell: bash

- name: Go installation
uses: actions/setup-go@v2.1.5
uses: actions/setup-go@v3.0.0
with:
go-version: ${{ matrix.go }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.16.x' ]
go: [ '1.17.x' ]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3.0.0
with:
fetch-depth: 0

- name: Go installation
uses: actions/setup-go@v2.1.5
uses: actions/setup-go@v3.0.0
with:
go-version: ${{ matrix.go }}

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4.1.0
uses: crazy-max/ghaction-import-gpg@v4.2.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
Expand All @@ -39,7 +39,7 @@ jobs:
run: ./utils/getChangelogRelease CHANGELOG.md ${{ steps.tag.outputs.tag }} > /tmp/RELEASE_CHANGELOG.md

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.8.1
uses: goreleaser/goreleaser-action@v2.9.1
with:
version: latest
args: release --rm-dist --release-notes=/tmp/RELEASE_CHANGELOG.md
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Terraform provider for [Netbox.](https://netbox.readthedocs.io/en/stable/)
| 2.8 | 0.x.y |
| 2.9 | 1.x.y |
| 2.11 | 2.x.y |
| 3.0 | 3.x.y |

## Building the provider

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_circuits_circuit_terminations_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the circuits_circuit_terminations_list Netbox endpoint

```hcl
data "netbox_json_circuits_circuit_terminations_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_circuits_circuit_terminations_list.test.json)
value = jsondecode(data.netbox_json_circuits_circuit_terminations_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_circuits_circuit_types_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the circuits_circuit_types_list Netbox endpoint

```hcl
data "netbox_json_circuits_circuit_types_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_circuits_circuit_types_list.test.json)
value = jsondecode(data.netbox_json_circuits_circuit_types_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_circuits_circuits_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the circuits_circuits_list Netbox endpoint

```hcl
data "netbox_json_circuits_circuits_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_circuits_circuits_list.test.json)
value = jsondecode(data.netbox_json_circuits_circuits_list.test.json)
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# netbox\_json\_secrets\_secret\_roles\_list Data Source
# netbox\_json\_circuits\_provider\_networks\_list Data Source

Get json output from the secrets_secret_roles_list Netbox endpoint
Get json output from the circuits_provider_networks_list Netbox endpoint

## Example Usage

```hcl
data "netbox_json_secrets_secret_roles_list" "test" {
limit = 0
data "netbox_json_circuits_provider_networks_list" "test" {
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_secrets_secret_roles_list.test.json)
value = jsondecode(data.netbox_json_circuits_provider_networks_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_circuits_providers_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the circuits_providers_list Netbox endpoint

```hcl
data "netbox_json_circuits_providers_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_circuits_providers_list.test.json)
value = jsondecode(data.netbox_json_circuits_providers_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_cables_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_cables_list Netbox endpoint

```hcl
data "netbox_json_dcim_cables_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_cables_list.test.json)
value = jsondecode(data.netbox_json_dcim_cables_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_console_port_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_console_port_templates_list Netbox endpoint

```hcl
data "netbox_json_dcim_console_port_templates_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_console_port_templates_list.test.json)
value = jsondecode(data.netbox_json_dcim_console_port_templates_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_console_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_console_ports_list Netbox endpoint

```hcl
data "netbox_json_dcim_console_ports_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_console_ports_list.test.json)
value = jsondecode(data.netbox_json_dcim_console_ports_list.test.json)
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_console_server_port_templates_list Netbox endpoint

```hcl
data "netbox_json_dcim_console_server_port_templates_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_console_server_port_templates_list.test.json)
value = jsondecode(data.netbox_json_dcim_console_server_port_templates_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_console_server_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_console_server_ports_list Netbox endpoint

```hcl
data "netbox_json_dcim_console_server_ports_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_console_server_ports_list.test.json)
value = jsondecode(data.netbox_json_dcim_console_server_ports_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_device_bay_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_device_bay_templates_list Netbox endpoint

```hcl
data "netbox_json_dcim_device_bay_templates_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_device_bay_templates_list.test.json)
value = jsondecode(data.netbox_json_dcim_device_bay_templates_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_device_bays_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_device_bays_list Netbox endpoint

```hcl
data "netbox_json_dcim_device_bays_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_device_bays_list.test.json)
value = jsondecode(data.netbox_json_dcim_device_bays_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_device_roles_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_device_roles_list Netbox endpoint

```hcl
data "netbox_json_dcim_device_roles_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_device_roles_list.test.json)
value = jsondecode(data.netbox_json_dcim_device_roles_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_device_types_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_device_types_list Netbox endpoint

```hcl
data "netbox_json_dcim_device_types_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_device_types_list.test.json)
value = jsondecode(data.netbox_json_dcim_device_types_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_devices_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_devices_list Netbox endpoint

```hcl
data "netbox_json_dcim_devices_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_devices_list.test.json)
value = jsondecode(data.netbox_json_dcim_devices_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_front_port_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_front_port_templates_list Netbox endpoint

```hcl
data "netbox_json_dcim_front_port_templates_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_front_port_templates_list.test.json)
value = jsondecode(data.netbox_json_dcim_front_port_templates_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_front_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_front_ports_list Netbox endpoint

```hcl
data "netbox_json_dcim_front_ports_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_front_ports_list.test.json)
value = jsondecode(data.netbox_json_dcim_front_ports_list.test.json)
}
```

Expand Down
24 changes: 0 additions & 24 deletions docs/data-sources/json_dcim_interface_connections_list.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_interface_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_interface_templates_list Netbox endpoint

```hcl
data "netbox_json_dcim_interface_templates_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_interface_templates_list.test.json)
value = jsondecode(data.netbox_json_dcim_interface_templates_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_interfaces_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_interfaces_list Netbox endpoint

```hcl
data "netbox_json_dcim_interfaces_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_interfaces_list.test.json)
value = jsondecode(data.netbox_json_dcim_interfaces_list.test.json)
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/json_dcim_inventory_items_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Get json output from the dcim_inventory_items_list Netbox endpoint

```hcl
data "netbox_json_dcim_inventory_items_list" "test" {
limit = 0
limit = 0
}
output "example" {
value = jsondecode(data.netbox_json_dcim_inventory_items_list.test.json)
value = jsondecode(data.netbox_json_dcim_inventory_items_list.test.json)
}
```

Expand Down
Loading

0 comments on commit 6327700

Please sign in to comment.