---
updatedAt: 2025-09-16T00:02:54.000Z
agentTools:
  projectIndex: https://developers.hivelocity.net/llms.txt
---

# Deploying Flatcar in a private VLAN

```javascript Terraform File
terraform {
  required_providers {
    hivelocity = {
      version = "<VERSION>"
      source   = "hivelocity/hivelocity"
    }
  }
}

provider "hivelocity" {
  api_key="<API-KEY>"
}

resource "hivelocity_ssh_key" "my_ssh_key" {
  name       = "My SSH Key"
  public_key = "ssh-rsa <SSH_KEY>"
}

resource "hivelocity_vlan" "my_pvlan" {
  private_networking_only = true
  facility_code = "NYC1"
}

resource "hivelocity_ignition" "my_ignition" {
  name     = "Flatcar test"
  contents = templatefile("\${path.module}/ignition.ign.tftpl", {
    vlan_tag = hivelocity_vlan.my_pvlan.tag_id
    private_network = "192.169.1.3/24"
  })
}

resource "hivelocity_bare_metal_device" "my_device1" {
  product_id        = 680
  os_name           = "Flatcar Linux 3.x"
  location_name     = "NYC1"
  hostname          = "flatcar.terraform.test"
  tags              = ["hello", "world"]
  public_ssh_key_id = hivelocity_ssh_key.my_ssh_key.id
  ignition_id       = hivelocity_ignition.my_ignition.id
}

```

```json Response Example
{"success":true}
```

# Specify the Hivelocity Provider

<!-- javascript@1-12 -->



# SSH Key to be added

<!-- javascript@14-17 -->



# Private VLAN to be added

<!-- javascript@19-22 -->



# Specify Ignition Resources

<!-- javascript@24-30 -->



# Server to be deployed

<!-- javascript@32-40 -->