Bladeren bron

added option to manage VMs mac addresses

Change-Id: I28bbc7a6b5810dfb56b8391a557aecd1fa523385
pull/73/head
Ondrej Smola 6 jaren geleden
bovenliggende
commit
e6bcb294fa
2 gewijzigde bestanden met toevoegingen van 25 en 0 verwijderingen
  1. +20
    -0
      README.rst
  2. +5
    -0
      salt/control/virt.sls

+ 20
- 0
README.rst Bestand weergeven

@@ -355,6 +355,21 @@ Control VM provisioning
image: snapshot.qcow
- cinder-volume:
size: 2048
nic:
control:
- name: nic01
bridge: br-pxe
model: virtio
- name: nic02
bridge: br-cp
model: virtio
- name: nic03
bridge: br-store-front
model: virtio
- name: nic04
bridge: br-public
model: virtio


salt:
control:
@@ -381,6 +396,11 @@ Control VM provisioning
rate:
period: '1800'
bytes: '1500'
mac:
nic01: AC:DE:48:AA:AA:AA
nic02: AC:DE:48:AA:AA:BB



Jinja options
-------------

+ 5
- 0
salt/control/virt.sls Bestand weergeven

@@ -51,6 +51,11 @@ salt_control_virt_{{ cluster_name }}_{{ node_name }}:
{%- if node.img_dest is defined %}
img_dest: {{ node.img_dest }}
{%- endif %}
{%- if node.mac is defined %}
{%- for mac_name, mac in node.mac.items() %}
{{ mac_name }}_mac: {{ mac }}
{%- endfor %}
{%- endif %}
- unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$"

#salt_control_seed_{{ cluster_name }}_{{ node_name }}:

Laden…
Annuleren
Opslaan