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

feat: add bunkerweb test vm #418

Merged
merged 1 commit into from
Dec 22, 2024
Merged

feat: add bunkerweb test vm #418

merged 1 commit into from
Dec 22, 2024

Conversation

bancey
Copy link
Owner

@bancey bancey commented Dec 22, 2024

No description provided.

@autonomous-bancey
Copy link
Contributor

Plan Result (test_vpn_gateway)

No changes. Your infrastructure matches the configuration.

@autonomous-bancey
Copy link
Contributor

Plan Result (generate_ansible_inventory)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • github_repository_file.hosts
Change Result (Click me)
  # github_repository_file.hosts will be updated in-place
  ~ resource "github_repository_file" "hosts" {
      ~ content                         = <<-EOT
            # This file is updated by Terraform to reflect the VMs deployed any updates should be made to the hosts.yaml.tpl file.
            all:
              vars:
                ansible_user: bancey
              hosts:
          +     bunkerweb-test:
          +       ansible_host: 10.151.14.201
                npm-test:
                  ansible_host: 10.151.14.200
                haproxy0:
                  ansible_host: 10.151.16.201
                  ansible_user: root
                haproxy1:
                  ansible_host: 10.151.16.202
                  ansible_user: root
                haproxy2:
                  ansible_host: 10.151.16.203
                  ansible_user: root
              children:
                rpi:
                  hosts:
                    thanos:
                      ansible_host: 10.151.14.5
                    gamora:
                      ansible_host: 10.151.14.6
                tiny_k3s_cluster:
                  vars:
                    metallb_ip_range: "10.151.16.50-10.151.16.100"
                    k3s_etcd_datastore: true
                    k3s_server:
                      flannel-backend: 'none'
                      disable:
                        - flannel
                        - local-storage
                        - servicelb
                        - traefik
                      disable-network-policy: true
                      write-kubeconfig-mode: "0644"
                      cluster-cidr: 10.42.0.0/16
                      service-cidr: 10.43.0.0/16
                      tls-san: 10.151.16.200
                    k3s_registration_address: 10.151.16.200
                  hosts:
                    tiny-master0:
                      ansible_host: 10.151.16.8
                    tiny-master1:
                      ansible_host: 10.151.16.9
                    tiny-master2:
                      ansible_host: 10.151.16.10
                    tiny-node0:
                      ansible_host: 10.151.16.16
                    tiny-node1:
                      ansible_host: 10.151.16.17
                    tiny-node2:
                      ansible_host: 10.151.16.18
                wanda_k3s_cluster:
                  vars:
                    metallb_ip_range: "10.151.15.50-10.151.15.100"
                    k3s_etcd_datastore: false
                    k3s_server:
                      flannel-backend: 'none'
                      disable:
                        - flannel
                        - local-storage
                        - servicelb
                        - traefik
                      disable-network-policy: true
                      write-kubeconfig-mode: "0644"
                      cluster-cidr: 10.42.0.0/16
                      service-cidr: 10.43.0.0/16
                  hosts:
                    wanda-master0:
                      ansible_host: 10.151.15.8
                    wanda-node0:
                      ansible_host: 10.151.15.16
                    wanda-node1:
                      ansible_host: 10.151.15.17
                    wanda-node2:
                      ansible_host: 10.151.15.18
                    wanda-node3:
                      ansible_host: 10.151.15.19
        EOT
        id                              = "lab-ops/ansible/hosts.yaml"
        # (10 unchanged attributes hidden)
    }

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

@autonomous-bancey
Copy link
Contributor

Plan Result (prod_twingate)

No changes. Your infrastructure matches the configuration.

@autonomous-bancey
Copy link
Contributor

Plan Result (prod_vpn_gateway)

No changes. Your infrastructure matches the configuration.

@autonomous-bancey
Copy link
Contributor

Plan Result (test_gameserver)

No changes. Your infrastructure matches the configuration.

@autonomous-bancey
Copy link
Contributor

Plan Result (prod_gameserver)

No changes. Your infrastructure matches the configuration.

@autonomous-bancey
Copy link
Contributor

Plan Result (tiny_virtual_machines)

Plan: 2 to add, 0 to change, 0 to destroy.
  • Create
    • module.tiny_virtual_machines["bunkerweb-test"].proxmox_virtual_environment_file.cloud_config
    • module.tiny_virtual_machines["bunkerweb-test"].proxmox_virtual_environment_vm.vm
Change Result (Click me)
  # module.tiny_virtual_machines["bunkerweb-test"].proxmox_virtual_environment_file.cloud_config will be created
  + resource "proxmox_virtual_environment_file" "cloud_config" {
      + content_type           = "snippets"
      + datastore_id           = "local"
      + file_modification_date = (known after apply)
      + file_name              = (known after apply)
      + file_size              = (known after apply)
      + file_tag               = (known after apply)
      + id                     = (known after apply)
      + node_name              = "loki"
      + overwrite              = true
      + timeout_upload         = 1800

      + source_raw {
          + data      = (sensitive value)
          + file_name = "bunkerweb-test-cloud-config.yaml"
          + resize    = 0
        }
    }

  # module.tiny_virtual_machines["bunkerweb-test"].proxmox_virtual_environment_vm.vm will be created
  + resource "proxmox_virtual_environment_vm" "vm" {
      + acpi                    = true
      + bios                    = "seabios"
      + description             = "BunkerWeb Test VM"
      + id                      = (known after apply)
      + ipv4_addresses          = (known after apply)
      + ipv6_addresses          = (known after apply)
      + keyboard_layout         = "en-us"
      + mac_addresses           = (known after apply)
      + migrate                 = false
      + name                    = "bunkerweb-test"
      + network_interface_names = (known after apply)
      + node_name               = "loki"
      + on_boot                 = true
      + protection              = false
      + reboot                  = false
      + scsi_hardware           = "virtio-scsi-pci"
      + started                 = true
      + stop_on_destroy         = false
      + tablet_device           = true
      + tags                    = [
          + "terraform",
        ]
      + template                = false
      + timeout_clone           = 1800
      + timeout_create          = 1800
      + timeout_migrate         = 1800
      + timeout_move_disk       = 1800
      + timeout_reboot          = 1800
      + timeout_shutdown_vm     = 1800
      + timeout_start_vm        = 1800
      + timeout_stop_vm         = 300
      + vm_id                   = 301

      + agent {
          + enabled = true
          + timeout = "15m"
          + trim    = false
          + type    = "virtio"
        }

      + cpu {
          + architecture = "x86_64"
          + cores        = 1
          + hotplugged   = 0
          + limit        = 0
          + numa         = false
          + sockets      = 1
          + type         = "host"
          + units        = 1024
        }

      + disk {
          + aio               = "io_uring"
          + backup            = true
          + cache             = "none"
          + datastore_id      = "local-lvm"
          + discard           = "on"
          + file_format       = (known after apply)
          + file_id           = "local:iso/jammy-server-cloudimg-amd64.img"
          + interface         = "virtio0"
          + iothread          = true
          + path_in_datastore = (known after apply)
          + replicate         = true
          + size              = 8
          + ssd               = false
        }

      + initialization {
          + datastore_id      = "local-lvm"
          + upgrade           = (known after apply)
          + user_data_file_id = (known after apply)

          + ip_config {
              + ipv4 {
                  + address = "10.151.14.201/24"
                  + gateway = "10.151.14.1"
                }
            }
        }

      + memory {
          + dedicated      = 4096
          + floating       = 0
          + keep_hugepages = false
          + shared         = 0
        }

      + network_device {
          + bridge      = "vmbr0"
          + enabled     = true
          + firewall    = false
          + mac_address = (known after apply)
          + model       = "virtio"
          + mtu         = 0
          + queues      = 0
          + rate_limit  = 0
          + vlan_id     = 0
        }

      + operating_system {
          + type = "l26"
        }

      + startup {
          + down_delay = -1
          + order      = 1
          + up_delay   = 1
        }
    }

Plan: 2 to add, 0 to change, 0 to destroy.
ℹ️ Objects have changed outside of Terraform

This feature was introduced from Terraform v0.15.4.

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:

  # module.tiny_virtual_machines["npm-test"].proxmox_virtual_environment_vm.vm has changed
  ~ resource "proxmox_virtual_environment_vm" "vm" {
        id                      = "300"
      ~ mac_addresses           = [
            # (1 unchanged element hidden)
            "BC:24:11:5D:E9:1B",
          + "02:42:EF:D6:79:51",
          + "02:42:E0:39:3B:56",
          + "02:42:CE:F7:8E:95",
          + "5E:17:25:DC:31:49",
          + "A6:7A:5A:52:E3:EE",
          + "22:D0:04:F2:57:7C",
        ]
        name                    = "npm-test"
        tags                    = [
            "terraform",
        ]
        # (28 unchanged attributes hidden)

        # (8 unchanged blocks hidden)
    }


Unless you have made equivalent changes to your configuration, or ignored the

@autonomous-bancey
Copy link
Contributor

Plan Result (prod_dns)

No changes. Your infrastructure matches the configuration.

Copy link

@mergify mergify bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 LGTM! beep boop

@bancey bancey merged commit 5653f42 into main Dec 22, 2024
14 checks passed
@bancey bancey deleted the feat/bunkerweb-test-vm branch December 22, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant