Skip to content
Snippets Groups Projects
Commit dd28e907 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Update runner disk space and reformat tf files

parent 6fcb5827
Branches
No related tags found
No related merge requests found
terraform {
required_providers {
proxmox = {
source = "Telmate/proxmox"
source = "Telmate/proxmox"
version = "2.7.1"
}
}
......@@ -10,7 +10,7 @@ terraform {
}
provider "proxmox" {
pm_api_url = "https://10.152.211.122:8006/api2/json"
pm_api_url = "https://10.152.211.122:8006/api2/json"
pm_tls_insecure = true
}
......
......@@ -15,7 +15,7 @@ resource "proxmox_lxc" "router" {
startup = "order=1"
unprivileged = true
ssh_public_keys = local.ssh_keys
ssh_public_keys = local.ssh_keys
rootfs {
storage = "ssd"
......@@ -34,7 +34,7 @@ resource "proxmox_lxc" "router" {
name = "eth1"
bridge = "vmbr0"
ip = "192.168.99.254/22"
ip6 = "fd00::9:254/96"
ip6 = "fd00::9:254/96"
hwaddr = "7A:9C:F7:A8:5D:1C"
}
}
resource "proxmox_vm_qemu" "gitlab-runner" {
name = "gitlab-runner"
desc = "Docker Gitlab Runner"
vmid = 6050
name = "gitlab-runner"
desc = "Docker Gitlab Runner"
vmid = 6050
target_node = "maze"
target_node = "maze"
clone = "ubuntu-cloudinit-21.04"
clone = "ubuntu-cloudinit-21.04"
agent = 1
agent = 1
cores = 6
sockets = 1
vcpus = 0
memory = 18000
cores = 6
sockets = 1
vcpus = 0
memory = 18000
os_type = "cloud-init"
os_type = "cloud-init"
disk {
size = "20G"
type = "virtio"
storage = "ssd"
}
disk {
size = "35G"
type = "virtio"
storage = "ssd"
}
network {
model = "virtio"
bridge = "vmbr0"
}
network {
model = "virtio"
bridge = "vmbr0"
macaddr = "7A:19:32:CF:F5:EB"
}
nameserver = "8.8.8.8"
ipconfig0 = "ip=192.168.96.50/22,gw=192.168.99.254"
sshkeys = <<-EOT
nameserver = "8.8.8.8"
ipconfig0 = "ip=192.168.96.50/22,gw=192.168.99.254"
sshkeys = <<-EOT
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXuXr/Mz1ENkvZ+Ntc9dF1r8VK62XaZtsMaV7N+CMZ8 rlacko@personal
EOT
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment