瀏覽代碼

added option to manage VMs mac addresses

Change-Id: I28bbc7a6b5810dfb56b8391a557aecd1fa523385
pull/73/head
Ondrej Smola 6 年之前
父節點
當前提交
e6bcb294fa
共有 2 個檔案被更改,包括 25 行新增0 行删除
  1. +20
    -0
      README.rst
  2. +5
    -0
      salt/control/virt.sls

+ 20
- 0
README.rst 查看文件

@@ -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 查看文件

@@ -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 }}:

Loading…
取消
儲存