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

add a single master for testing #10

Merged
merged 2 commits into from
Jul 16, 2023
Merged

add a single master for testing #10

merged 2 commits into from
Jul 16, 2023

Conversation

glitchcrab
Copy link
Contributor

No description provided.

@glitchcrab glitchcrab self-assigned this Apr 7, 2023
@glitchcrab-bot
Copy link
Collaborator

Ran Plan for project: homelab-k8s-cluster-room101-a7d-mc dir: cluster workspace: default

Show Output
data.vault_generic_secret.terraform_generic: Reading...
data.vault_generic_secret.terraform_pve_auth: Reading...
data.vault_generic_secret.terraform_pve_token: Reading...
data.vault_generic_secret.terraform_pve_auth: Read complete after 0s [id=proxmox/terraform-pve-auth]
data.vault_generic_secret.terraform_pve_token: Read complete after 0s [id=proxmox/terraform-pve-token]
data.vault_generic_secret.terraform_generic: Read complete after 0s [id=proxmox/terraform-pve-config]

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:

  # macaddress.master_net0_mac[0] will be created
+ resource "macaddress" "master_net0_mac" {
      + address = (known after apply)
      + id      = (known after apply)
    }

  # null_resource.master_smbios1_values[0] will be created
+ resource "null_resource" "master_smbios1_values" {
      + id = (known after apply)
    }

  # null_resource.master_start[0] will be created
+ resource "null_resource" "master_start" {
      + id = (known after apply)
    }

  # null_resource.master_stop[0] will be created
+ resource "null_resource" "master_stop" {
      + id = (known after apply)
    }

  # random_string.master_serial[0] will be created
+ resource "random_string" "master_serial" {
      + id          = (known after apply)
      + length      = 16
      + lower       = true
      + min_lower   = 0
      + min_numeric = 0
      + min_special = 0
      + min_upper   = 0
      + number      = true
      + numeric     = true
      + result      = (known after apply)
      + special     = false
      + upper       = false
    }

  # random_uuid.master_uuid[0] will be created
+ resource "random_uuid" "master_uuid" {
      + id     = (known after apply)
      + result = (known after apply)
    }

  # time_sleep.master_sleep_10s[0] will be created
+ resource "time_sleep" "master_sleep_10s" {
      + create_duration = "10s"
      + id              = (known after apply)
    }

  # time_sleep.worker_sleep_10s[0] will be created
+ resource "time_sleep" "worker_sleep_10s" {
      + create_duration = "10s"
      + id              = (known after apply)
    }

  # module.master_instances[0].proxmox_vm_qemu.proxmox_instance will be created
+ resource "proxmox_vm_qemu" "proxmox_instance" {
      + additional_wait           = 5
      + agent                     = 0
      + automatic_reboot          = true
      + balloon                   = 0
      + bios                      = "seabios"
      + boot                      = "order=scsi0;net0"
      + bootdisk                  = (known after apply)
      + clone_wait                = 10
      + cores                     = 2
      + cpu                       = "host"
      + default_ipv4_address      = (known after apply)
      + define_connection_info    = true
      + desc                      = (known after apply)
      + force_create              = false
      + full_clone                = true
      + guest_agent_ready_timeout = 100
      + hagroup                   = "ha-group-1"
      + hastate                   = "enabled"
      + hotplug                   = "network,disk,usb"
      + id                        = (known after apply)
      + kvm                       = true
      + memory                    = 3072
      + name                      = "master0-room101-a7d-mc"
      + nameserver                = (known after apply)
      + onboot                    = false
      + oncreate                  = false
      + pool                      = "room101-a7d-mc"
      + preprovision              = true
      + pxe                       = true
      + reboot_required           = (known after apply)
      + scsihw                    = "lsi"
      + searchdomain              = (known after apply)
      + sockets                   = 1
      + ssh_host                  = (known after apply)
      + ssh_port                  = (known after apply)
      + tablet                    = true
      + target_node               = "host-01"
      + unused_disk               = (known after apply)
      + vcpus                     = 0
      + vlan                      = -1
      + vmid                      = 410

      + disk {
          + backup             = true
          + cache              = "none"
          + file               = (known after apply)
          + format             = (known after apply)
          + iops               = 0
          + iops_max           = 0
          + iops_max_length    = 0
          + iops_rd            = 0
          + iops_rd_max        = 0
          + iops_rd_max_length = 0
          + iops_wr            = 0
          + iops_wr_max        = 0
          + iops_wr_max_length = 0
          + 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               = "30G"
          + slot               = (known after apply)
          + ssd                = 0
          + storage            = "local-lvm"
          + storage_type       = (known after apply)
          + type               = "scsi"
          + volume             = (known after apply)
        }

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

Plan: 9 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -p homelab-k8s-cluster-room101-a7d-mc
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -p homelab-k8s-cluster-room101-a7d-mc
Plan: 9 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@glitchcrab
Copy link
Contributor Author

atlantis apply

@glitchcrab-bot
Copy link
Collaborator

Ran Apply for project: homelab-k8s-cluster-room101-a7d-mc dir: cluster workspace: default

Show Output
macaddress.master_net0_mac[0]: Creating...
macaddress.master_net0_mac[0]: Creation complete after 0s [id=ba:9b:cb:24:93:45]
random_uuid.master_uuid[0]: Creating...
random_string.master_serial[0]: Creating...
random_uuid.master_uuid[0]: Creation complete after 0s [id=bcd6ad98-106d-feca-5e83-7a8ceaa832b8]
random_string.master_serial[0]: Creation complete after 0s [id=hf1gsdcxxa1aufj5]
module.master_instances[0].proxmox_vm_qemu.proxmox_instance: Creating...
module.master_instances[0].proxmox_vm_qemu.proxmox_instance: Creation complete after 7s [id=host-01/qemu/410]
null_resource.master_smbios1_values[0]: Creating...
null_resource.master_smbios1_values[0]: Provisioning with 'local-exec'...
null_resource.master_smbios1_values[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_smbios1_values[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_smbios1_values[0]: Creation complete after 1s [id=760297072077118504]
null_resource.master_stop[0]: Creating...
null_resource.master_stop[0]: Provisioning with 'local-exec'...
null_resource.master_stop[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_stop[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_stop[0]: Creation complete after 0s [id=738214520426479689]
time_sleep.master_sleep_10s[0]: Creating...
time_sleep.worker_sleep_10s[0]: Creating...
time_sleep.master_sleep_10s[0]: Still creating... [10s elapsed]
time_sleep.worker_sleep_10s[0]: Still creating... [10s elapsed]
time_sleep.master_sleep_10s[0]: Creation complete after 10s [id=2023-04-07T17:09:53Z]
time_sleep.worker_sleep_10s[0]: Creation complete after 10s [id=2023-04-07T17:09:53Z]
null_resource.master_start[0]: Creating...
null_resource.master_start[0]: Provisioning with 'local-exec'...
null_resource.master_start[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_start[0] (local-exec): (output suppressed due to sensitive value in config)
null_resource.master_start[0]: Creation complete after 0s [id=2888632306506713428]

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

@glitchcrab-bot
Copy link
Collaborator

Ran Plan for dir: cluster workspace: default

Plan Error

Show Output
running "/atlantis-data/bin/terraform1.5.3 plan -input=false -refresh -out \"/atlantis-data/repos/a7d-corp/homelab-k8s-cluster-room101-a7d-mc/10/default/cluster/homelab-k8s-cluster-room101-a7d-mc-default.tfplan\"" in "/atlantis-data/repos/a7d-corp/homelab-k8s-cluster-room101-a7d-mc/10/default/cluster": exit status 1
random_string.worker_serial[0]: Refreshing state... [id=08999p3s8vvlvwdv]
random_string.worker_serial[1]: Refreshing state... [id=pzny0es14l8g1kda]
macaddress.worker_net0_mac[0]: Refreshing state... [id=da:fb:03:59:18:27]
macaddress.worker_net0_mac[1]: Refreshing state... [id=e6:50:8c:4c:18:e7]
macaddress.master_net0_mac[0]: Refreshing state... [id=ca:b7:c7:52:4c:5b]
random_string.master_serial[0]: Refreshing state... [id=3h1akyfu23t26z8w]

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Error making API request.
│ 
│ URL: GET https://vault.analbeard.com/v1/auth/token/lookup-self
│ Code: 403. Errors:
│ 
│ * permission denied
│ 
│   with provider["registry.terraform.io/hashicorp/vault"],
│   on zz_provider.tf line 9, in provider "vault":
│    9: provider "vault" {}
│ 
╵


@glitchcrab glitchcrab merged commit 1395470 into main Jul 16, 2023
0 of 3 checks passed
@glitchcrab glitchcrab deleted the add/single-master branch July 16, 2023 21:11
@glitchcrab
Copy link
Contributor Author

atlantis unlock

@glitchcrab-bot
Copy link
Collaborator

All Atlantis locks for this PR have been unlocked and plans discarded

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.

None yet

2 participants