Browse Source

added option to manage VMs mac addresses

Change-Id: I28bbc7a6b5810dfb56b8391a557aecd1fa523385
pull/73/head
Ondrej Smola 6 years ago
parent
commit
e6bcb294fa
2 changed files with 25 additions and 0 deletions
  1. +20
    -0
      README.rst
  2. +5
    -0
      salt/control/virt.sls

+ 20
- 0
README.rst View File

image: snapshot.qcow image: snapshot.qcow
- cinder-volume: - cinder-volume:
size: 2048 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: salt:
control: control:
rate: rate:
period: '1800' period: '1800'
bytes: '1500' bytes: '1500'
mac:
nic01: AC:DE:48:AA:AA:AA
nic02: AC:DE:48:AA:AA:BB




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

+ 5
- 0
salt/control/virt.sls View File

{%- if node.img_dest is defined %} {%- if node.img_dest is defined %}
img_dest: {{ node.img_dest }} img_dest: {{ node.img_dest }}
{%- endif %} {%- 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 }}$" - unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$"


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

Loading…
Cancel
Save