Skip to content

Bootstrap dali vm in admin network

Related to T3833

Test Plan

terraform up-to-date (1.1.3).

terraform plan happy:

$ terraform plan
module.bardo.proxmox_vm_qemu.node: Refreshing state... [id=hypervisor3/qemu/124]
module.rp1.proxmox_vm_qemu.node: Refreshing state... [id=branly/qemu/115]

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

Terraform will perform the following actions:

  # module.dali.proxmox_vm_qemu.node will be created
  + resource "proxmox_vm_qemu" "node" {
      + additional_wait           = 0
      + agent                     = 0
      + balloon                   = 4096
      + bios                      = "seabios"
      + boot                      = "c"
      + bootdisk                  = (known after apply)
      + ciuser                    = "root"
      + clone                     = "debian-bullseye-11.2-2022-01-03"
      + clone_wait                = 0
      + cores                     = 4
      + cpu                       = "kvm64"
      + default_ipv4_address      = (known after apply)
      + define_connection_info    = true
      + desc                      = "admin databases host"
      + force_create              = false
      + full_clone                = false
      + guest_agent_ready_timeout = 100
      + hotplug                   = "network,disk,usb"
      + id                        = (known after apply)
      + ipconfig0                 = "ip=192.168.50.50/24,gw=192.168.50.1"
      + kvm                       = true
      + memory                    = 8192
      + name                      = "dali"
      + nameserver                = "192.168.100.29"
      + numa                      = false
      + onboot                    = true
      + oncreate                  = true
      + os_type                   = "cloud-init"
      + preprovision              = true
      + reboot_required           = (known after apply)
      + scsihw                    = (known after apply)
      + searchdomain              = "internal.admin.swh.network"
      + sockets                   = 1
      + ssh_host                  = (known after apply)
      + ssh_port                  = (known after apply)
      + ssh_user                  = "root"
      + sshkeys                   = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVKCfpeIMg7GS3Pk03ZAcBWAeDZ+AvWk2k/pPY0z8MJ3YAbqZkRtSK7yaDgJV6Gro7nn/TxdJLo2jEzzWvlC8d8AEzhZPy5Z/qfVVjqBTBM4H5+e+TItAHFfaY5+0WvIahxcfsfaq70MWfpJhszAah3ThJ4mqzYaw+dkr42+a7Gx3Ygpb/m2dpnFnxvXdcuAJYStmHKU5AWGWWM+Fm50/fdMqUfNd8MbKhkJt5ihXQmZWMOt7ls4N8i5NZWnS9YSWow8X/ENOEqCRN9TyRkc+pPS0w9DNi0BCsWvSRJOkyvQ6caEnKWlNoywCmM1AlIQD3k4RUgRWe0vqg/UKPpH3Z root@terraform"
      + tablet                    = true
      + target_node               = "branly"
      + unused_disk               = (known after apply)
      + vcpus                     = 0
      + vlan                      = -1
      + vmid                      = 144

      + disk {
          + backup       = 0
          + cache        = "none"
          + file         = (known after apply)
          + format       = (known after apply)
          + iothread     = 0
          + mbps         = 0
          + mbps_rd      = 0
          + mbps_rd_max  = 0
          + mbps_wr      = 0
          + mbps_wr_max  = 0
          + media        = (known after apply)
          + replicate    = 0
          + size         = "32G"
          + slot         = (known after apply)
          + ssd          = 0
          + storage      = "proxmox"
          + storage_type = (known after apply)
          + type         = "virtio"
          + volume       = (known after apply)
        }

      + network {
          + bridge    = "vmbr442"
          + firewall  = false
          + link_down = false
          + macaddr   = (known after apply)
          + model     = "virtio"
          + queues    = (known after apply)
          + rate      = (known after apply)
          + tag       = -1
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

terraform apply happy as well:

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

dali_summary = <<EOT

hostname: dali
fqdn: dali.internal.admin.swh.network
network: ip=192.168.50.50/24,gw=192.168.50.1 macaddrs=C2:7C:85:D0:E8:7C

EOT
``

----
*Migrated from D6906 ([view on Phabricator](https://forge.softwareheritage.org/D6906))*

Merge request reports