Skip to content

cupracer/ecm-on-proxmox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Attempts at cross-platform orchestration

Caution

HEAVILY WORK IN PROGRESS - DO NOT USE

Overview

Features

  • Hashicorp Packer
  • Hashicorp Terraform

Target platforms

  • Proxmox (QEMU)
  • vSphere

Guest OS

  • openSUSE MicroOS

Packer

cd <project-dir>/packer

Setup

  1. Create HCL config files. Replace VARIANT with an available platform name.
cp openSUSE_MicroOS-selfinstall.VARIANT.pkr.hcl.dist openSUSE_MicroOS-selfinstall.pkr.hcl
cp variables.pkrvars.proxmox.VARIANT.dist variables.pkrvars.hcl
  1. Adjust the config values in variables.pkrvars.hcl accordingly.
  2. Initialize Packer:
packer init openSUSE_MicroOS-selfinstall.pkr.hcl
  1. Create an SSH key-pair to let Packer access the temporary system during the build process:
ssh-keygen -t ed25519 -C "Packer" -f ./ssh_files/packer

Build

packer build -var-file="variables.pkrvars.hcl" .

Terraform

cd <project-dir>/terraform

Setup

  1. Create the Terraform module wrapper for your platform. Replace VARIANT with an available platform name. No adjustments need to be done in this file.
cp nodes.VARIANT_vm.tf.dist nodes.tf
  1. Create a config file to hold all custom settings:
cp terraform.tfvars.dist terraform.tfvars
  1. Uncomment all settings for the chosen platform and set their values in terraform.tfvars.
  2. Initialize Terraform:
terraform init

Build

terraform apply

If there's an issue when creating too many VM's at the same time with Terraform and Proxmox, try to limit parallel activities:

terraform apply -parallelism=1

Misc.

URL for image downloads:

https://download.opensuse.org/tumbleweed/appliances/iso/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published