Fix iso_path and update Readme for internal net

This commit is contained in:
moeny-matt 2025-04-07 17:20:19 -04:00
parent f2a9bfe8d5
commit 4ce51e1e4c
2 changed files with 17 additions and 1 deletions

View File

@ -173,3 +173,18 @@ EOF
ssh moeny@ns1.moeny.ai "sudo rndc sync moeny.ai"
```
## VMs on an Internal Network
In order to spin up VMs on an internal network, you will need to generate an Alpine iso comatible with the internal IPs you are using and specify its path. You will also want to declare the staging IP and gateway IP parameters accordingly. Here is a sample command to run the Alpine bolt plan.
```bash
bolt plan run bolt_vm_automation::create_alpine \
vm_name=moeny-service \
ip_with_cidr=10.44.0.20/24 \
hostname=moeny-service \
network=internal-moeny \
staging_ip=10.44.0.250 \
gateway_ip=10.44.0.1 \
iso_path=/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall-internal_moeny.iso -v
```

View File

@ -7,7 +7,7 @@ parameters:
iso_path:
type: String
description: "Path to the ISO file"
default: "/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall.iso"
default: "/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall-wan_verizon.iso"
vm_name:
type: String
description: "Name of the VM"
@ -108,6 +108,7 @@ steps:
disk_path: "${disk_path}/${vm_name}.qcow2"
staging_ip: $staging_ip
gateway_ip: $gateway_ip
- name: install_packages
description: Install Packages on the VM
task: bolt_vm_automation::install_packages_alpine