Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create VM resources in Netbox #13

Merged
merged 3 commits into from
Feb 3, 2024
Merged

Create VM resources in Netbox #13

merged 3 commits into from
Feb 3, 2024

Conversation

mraerino
Copy link
Member

@mraerino mraerino commented Feb 3, 2024

No description provided.

@mraerino mraerino self-assigned this Feb 3, 2024

This comment has been minimized.

Copy link

github-actions bot commented Feb 3, 2024

🏗️ Terraform Plan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  - destroy

Terraform will perform the following actions:

  # module.supernode[0].netbox_available_ip_address.management_ipv6 will be destroyed
  # (because netbox_available_ip_address.management_ipv6 is not in configuration)
  - resource "netbox_available_ip_address" "management_ipv6" {
      - description  = "Management Address dev-0" -> null
      - id           = "661" -> null
      - interface_id = 0 -> null
      - ip_address   = "2001:678:b7c:201::1/64" -> null
      - prefix_id    = 101 -> null
      - status       = "active" -> null
      - tags         = [] -> null
      - tenant_id    = 0 -> null
      - vrf_id       = 0 -> null
    }

  # module.supernode[0].netbox_interface.eth0 will be created
  + resource "netbox_interface" "eth0" {
      + enabled            = true
      + id                 = (known after apply)
      + mac_address        = "0E:E1:97:F8:CA:84"
      + name               = "eth0"
      + virtual_machine_id = (known after apply)
    }

  # module.supernode[0].netbox_ip_address.management_ipv6 will be created
  + resource "netbox_ip_address" "management_ipv6" {
      + description                  = "Management Address dev-0"
      + id                           = (known after apply)
      + ip_address                   = "2001:678:b7c:201:ce1:97ff:fef8:ca84/64"
      + nat_outside_addresses        = (known after apply)
      + status                       = "slaac"
      + virtual_machine_interface_id = (known after apply)
    }

  # module.supernode[0].netbox_primary_ip.supernode will be created
  + resource "netbox_primary_ip" "supernode" {
      + id                 = (known after apply)
      + ip_address_id      = (known after apply)
      + ip_address_version = 6
      + virtual_machine_id = (known after apply)
    }

  # module.supernode[0].netbox_virtual_machine.supernode will be created
  + resource "netbox_virtual_machine" "supernode" {
      + cluster_id   = 1
      + disk_size_gb = 4
      + id           = (known after apply)
      + memory_mb    = 1024
      + name         = "supernode-dev-0"
      + primary_ipv4 = (known after apply)
      + primary_ipv6 = (known after apply)
      + role_id      = 48
      + status       = "staged"
      + vcpus        = 2
    }

  # module.supernode[1].netbox_available_ip_address.management_ipv6 will be destroyed
  # (because netbox_available_ip_address.management_ipv6 is not in configuration)
  - resource "netbox_available_ip_address" "management_ipv6" {
      - description  = "Management Address dev-1" -> null
      - id           = "662" -> null
      - interface_id = 0 -> null
      - ip_address   = "2001:678:b7c:201::4/64" -> null
      - prefix_id    = 101 -> null
      - status       = "active" -> null
      - tags         = [] -> null
      - tenant_id    = 0 -> null
      - vrf_id       = 0 -> null
    }

  # module.supernode[1].netbox_interface.eth0 will be created
  + resource "netbox_interface" "eth0" {
      + enabled            = true
      + id                 = (known after apply)
      + mac_address        = "7A:0F:0B:DA:03:F9"
      + name               = "eth0"
      + virtual_machine_id = (known after apply)
    }

  # module.supernode[1].netbox_ip_address.management_ipv6 will be created
  + resource "netbox_ip_address" "management_ipv6" {
      + description                  = "Management Address dev-1"
      + id                           = (known after apply)
      + ip_address                   = "2001:678:b7c:201:780f:bff:feda:3f9/64"
      + nat_outside_addresses        = (known after apply)
      + status                       = "slaac"
      + virtual_machine_interface_id = (known after apply)
    }

  # module.supernode[1].netbox_primary_ip.supernode will be created
  + resource "netbox_primary_ip" "supernode" {
      + id                 = (known after apply)
      + ip_address_id      = (known after apply)
      + ip_address_version = 6
      + virtual_machine_id = (known after apply)
    }

  # module.supernode[1].netbox_virtual_machine.supernode will be created
  + resource "netbox_virtual_machine" "supernode" {
      + cluster_id   = 1
      + disk_size_gb = 4
      + id           = (known after apply)
      + memory_mb    = 1024
      + name         = "supernode-dev-1"
      + primary_ipv4 = (known after apply)
      + primary_ipv6 = (known after apply)
      + role_id      = 48
      + status       = "staged"
      + vcpus        = 2
    }

Plan: 8 to add, 0 to change, 2 to destroy.

@mraerino mraerino merged commit da224e7 into main Feb 3, 2024
2 checks passed
@mraerino mraerino deleted the feat/netbox-inventory branch February 3, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant