Skip to content

Instantly share code, notes, and snippets.

@schasi
schasi / ovirt.py
Last active February 20, 2019 10:42
Getting the mac address to set when creating a VM via an orchestration file (see line 57)
def create(vm_):
'''
Create a VM in oVirt
The configuration for this function is read from the profile settings.
.. code-block:: bash
salt-cloud -p some_profile oVirt-VM-1
@schasi
schasi / ovirt.conf
Last active February 20, 2019 10:44
Getting mac address data from a orchestration sls file and setting it via the cloud provider when instanciating the VM
FreeBSD-2C-2G:
provider: ovirt-config
user: root
ssh_keyfile: /etc/ssl/pki/salt/templates/id_rsa
template: {{ pillar['stage']|lower|title }}-FreeBSD
memory: 2147483648
cores: 2
minion:
master: {{ grains['fqdn'] }}
mac: "af:af:fe:fe:00"