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

Fix cloudinit docs, update runner and router inventory

parent 9e514f06
No related branches found
No related tags found
No related merge requests found
all:
hosts:
# Use OpenSSH config to make it confortable
152.66.211.122:
ansible_port: 10022
router.maze:
......@@ -11,17 +11,3 @@
vars_files:
- vars/vars.yaml
vars:
users:
- name: rlacko
sudo: yes
passwordless_sudo: yes
keys_url: https://git.sch.bme.hu/rlacko.keys
ssh:
port: 10022
permitRootLogin: 'no'
pubkeyAuthentication: 'yes'
passwordAuthentication: 'no'
allow:
users: 'rlacko'
all:
hosts:
152.66.211.9:
ansible_port: 10022
runner.internal.maze:
......@@ -19,14 +19,14 @@ export CLOUD_IMG_FILE="focal-server-cloudimg-amd64.img"
qm create $VM_ID -name $VM_NAME -memory 1024 -net0 virtio,bridge=vmbr0 -cores 1 -sockets 1
qm importdisk $VM_ID $CLOUD_IMG_FILE $STORAGE_POOL
qm set $VM_ID -scsihw virtio-scsi-pci -virtio0 ssd:vm-$VM_ID-disk-0
qm set $VM_ID -scsihw virtio-scsi-pci -virtio0 $STORAGE_POOL:vm-$VM_ID-disk-0
qm set $VM_ID -serial0 socket
qm set $VM_ID -boot c -bootdisk virtio0
qm set $VM_ID -agent 1
qm set $VM_ID -agent 1
qm set $VM_ID -hotplug network,usb
qm set $VM_ID -vga qxl
qm set $VM_ID -ide2 ssd:cloudinit
qm set $VM_ID -ide2 $STORAGE_POOL:cloudinit
qm resize $VM_ID virtio0 +4G
qm template $VM_ID
```
resource "proxmox_vm_qemu" "runner-tmp" {
name = "tmp-gv-gitlab-runner"
desc = "Temp Globalvet Gitlab Runner"
vmid = 6100
target_node = "maze"
clone = "ubuntu-21.04-cloudimg"
agent = 1
cores = 8
sockets = 1
vcpus = 0
memory = 26000
disk {
size = "40G"
type = "virtio"
storage = "ssd"
}
network {
model = "virtio"
bridge = "vmbr211"
macaddr = "42:63:41:D8:F7:DE"
}
ipconfig0 = "ip=152.66.211.9/24,gw=152.66.211.254"
sshkeys = <<EOF
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXuXr/Mz1ENkvZ+Ntc9dF1r8VK62XaZtsMaV7N+CMZ8 rlacko@personal
EOF
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment