rename from coreol9 or coreol9Small to sool9

This commit is contained in:
m0duspwnens
2025-01-16 11:16:20 -05:00
parent 0e0fb885d2
commit 58be7ae5db
6 changed files with 8 additions and 8 deletions

View File

@@ -12,9 +12,9 @@ Usage:
python so-qcow2-modify-network.py -I <qcow2_image_path> -i <interface> (--dhcp4 | --static4 --ip4 <ip_address> --gw4 <gateway>) [--dns4 <dns_servers>] [--search4 <search_domain>] python so-qcow2-modify-network.py -I <qcow2_image_path> -i <interface> (--dhcp4 | --static4 --ip4 <ip_address> --gw4 <gateway>) [--dns4 <dns_servers>] [--search4 <search_domain>]
Examples: Examples:
python so-qcow2-modify-network.py -I /var/lib/libvirt/images/coreol9/coreol9.qcow2 -i eth0 --static4 --ip4 192.168.1.10/24 --gw4 192.168.1.1 --dns4 192.168.1.1,8.8.8.8 --search4 example.local python so-qcow2-modify-network.py -I /var/lib/libvirt/images/sool9/sool9.qcow2 -i eth0 --static4 --ip4 192.168.1.10/24 --gw4 192.168.1.1 --dns4 192.168.1.1,8.8.8.8 --search4 example.local
python so-qcow2-modify-network.py -I /var/lib/libvirt/images/coreol9/coreol9.qcow2 -i eth0 --dhcp4 python so-qcow2-modify-network.py -I /var/lib/libvirt/images/sool9/sool9.qcow2 -i eth0 --dhcp4
""" """
import argparse import argparse

View File

@@ -1 +0,0 @@
# The files in this directory (/opt/so/saltstack/local/salt/libvirt/images/coreol9Small) are generated by createvm.sh. They are then distributed to the hypervisors where a storage pool will be created then the image can be installed.

View File

@@ -1,6 +1,6 @@
# the source location will be /opt/so/saltstack/local/salt/libvirt/imaages/coreol9Small # the source location will be /opt/so/saltstack/local/salt/libvirt/images/sool9
# this will need to change to save the images to /nsm # this will need to change to save the images to /nsm
baseimagefiles: baseimagefiles:
file.recurse: file.recurse:
- name: /var/lib/libvirt/images/coreol9Small/ - name: /var/lib/libvirt/images/sool9/
- source: salt://libvirt/images/coreol9Small/ - source: salt://libvirt/images/sool9/

View File

@@ -0,0 +1 @@
# The files in this directory (/opt/so/saltstack/local/salt/libvirt/images/sool9) are generated by createvm.sh. They are then distributed to the hypervisors where a storage pool will be created then the image can be installed.

View File

@@ -79,7 +79,7 @@ set_default_pool:
virt.pool_running: virt.pool_running:
- name: default - name: default
- ptype: dir - ptype: dir
- target: /var/lib/libvirt/images/coreol9 - target: /var/lib/libvirt/images/sool9
- permissions: - permissions:
- mode: 0711 - mode: 0711
- owner: qemu - owner: qemu

View File

@@ -236,7 +236,7 @@ def run_qcow2_modify_hardware_config(profile, vm_name, cpu=None, memory=None, pc
def run_qcow2_modify_network_config(profile, mode, ip=None, gateway=None, dns=None, search_domain=None): def run_qcow2_modify_network_config(profile, mode, ip=None, gateway=None, dns=None, search_domain=None):
hv_name = profile.split('-')[1] hv_name = profile.split('-')[1]
target = hv_name + "_*" target = hv_name + "_*"
image = '/var/lib/libvirt/images/coreol9/coreol9.qcow2.MODIFIED' image = '/var/lib/libvirt/images/sool9/sool9.qcow2'
interface = 'eth0' interface = 'eth0'
try: try: