fix: increase boot partition and harmonize lvm (#5)
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

Reviewed-on: #5
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2024-04-11 23:40:33 +02:00 committed by Robert Kaussow
parent 81d697ad98
commit 8db08882d8
3 changed files with 12 additions and 12 deletions

View File

@ -59,22 +59,21 @@ clearpart --all --initlabel
### Modify partition sizes for the virtual machine hardware. ### Modify partition sizes for the virtual machine hardware.
### Create primary system partitions. ### Create primary system partitions.
part /boot --fstype xfs --size=512 --label=BOOTFS part /boot --fstype xfs --size=2048 --label=BOOTFS
part /boot/efi --fstype vfat --size=512 --label=EFIFS part /boot/efi --fstype vfat --size=512 --label=EFIFS
part pv.01 --size=19 --grow part pv.01 --size=17 --grow
### Create a logical volume management (LVM) group. ### Create a logical volume management (LVM) group.
volgroup vg00 --pesize=4096 pv.01 volgroup vg00 --pesize=4096 pv.01
### Modify logical volume sizes for the virtual machine hardware. ### Modify logical volume sizes for the virtual machine hardware.
### Create logical volumes. ### Create logical volumes.
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=6000 --label=ROOTFS logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=10240 --label=ROOTFS
logvol /home --fstype xfs --name=lv_home --vgname=vg00 --size=3000 --label=HOMEFS --fsoptions="nodev" logvol /home --fstype xfs --name=lv_home --vgname=vg00 --size=2048 --label=HOMEFS
logvol /opt --fstype xfs --name=lv_opt --vgname=vg00 --size=1000 --label=OPTFS
logvol /tmp --fstype xfs --name=lv_tmp --vgname=vg00 --size=512 --label=TMPFS --fsoptions="nosuid,noexec,nodev" logvol /tmp --fstype xfs --name=lv_tmp --vgname=vg00 --size=512 --label=TMPFS --fsoptions="nosuid,noexec,nodev"
logvol /var --fstype xfs --name=lv_var --vgname=vg00 --size=3000 --label=VARFS --fsoptions="nosuid" logvol /var --fstype xfs --name=lv_var --vgname=vg00 --size=2048 --label=VARFS --fsoptions="nosuid"
logvol /var/tmp --fstype xfs --name=lv_vartmp --vgname=vg00 --size=512 --label=LOGFS --fsoptions="nosuid,noexec,nodev" logvol /var/tmp --fstype xfs --name=lv_vartmp --vgname=vg00 --size=512 --label=LOGFS --fsoptions="nosuid,noexec,nodev"
logvol /var/log --fstype xfs --name=lv_log --vgname=vg00 --size=1000 --label=LOGFS --fsoptions="nosuid,noexec,nodev" logvol /var/log --fstype xfs --name=lv_log --vgname=vg00 --size=1024 --label=LOGFS --fsoptions="nosuid,noexec,nodev"
logvol /var/log/audit --fstype xfs --name=lv_audit --vgname=vg00 --size=512 --label=AUDITFS --fsoptions="nosuid,noexec,nodev" logvol /var/log/audit --fstype xfs --name=lv_audit --vgname=vg00 --size=512 --label=AUDITFS --fsoptions="nosuid,noexec,nodev"
### Modifies the default set of services that will run under the default runlevel. ### Modifies the default set of services that will run under the default runlevel.

View File

@ -3,7 +3,7 @@ packer {
required_plugins { required_plugins {
hcloud = { hcloud = {
version = "1.3.0" version = "1.3.0"
source = "github.com/hashicorp/hcloud" source = "github.com/hetznercloud/hcloud"
} }
} }
} }
@ -38,9 +38,10 @@ source "hcloud" "rocky-linux-9" {
token = "${var.hcloud_token}" token = "${var.hcloud_token}"
// Virtual Machine Settings // Virtual Machine Settings
location = "${var.hcloud_location}" location = "${var.hcloud_location}"
server_type = "${var.hcloud_server_type}" server_type = "cx11"
server_name = "${var.hcloud_server_name}" upgrade_server_type = "${var.hcloud_server_type}"
server_name = "${var.hcloud_server_name}"
// Communicator Settings and Credentials // Communicator Settings and Credentials
ssh_username = "root" ssh_username = "root"

View File

@ -26,7 +26,7 @@ variable "hcloud_location" {
variable "hcloud_server_type" { variable "hcloud_server_type" {
type = string type = string
default = "cx11" default = "cx21"
} }
variable "hcloud_server_name" { variable "hcloud_server_name" {