Kostiantyn Kalynovskyi d7df2fb571 Moving roles from zuul-airship-roles.
Changes is needed because we can not make dependencies on PRs from
other repositories such as zuul-airship-roles, this would allow more
robust development in the stage we currently are in. When there will
be less activity on gating roles will be moved back to separate repo.

Change-Id: I85c9bdd47b5aaba90df5458b20c90ff5c912c05f
2020-02-12 22:52:17 +00:00

60 lines
1.2 KiB
YAML

libvirt_pool:
path: /var/lib/libvirt/airship
name: airship
libvirt_volumes:
- name: volume-1
image: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
size: 10G
pool: "{{ libvirt_pool.name }}"
action: create
- name: volume-2
size: 10G
pool: "{{ libvirt_pool.name }}"
action: create
libvirt_domain:
state: running
name: 'vm1'
memory_mb: 2048
vcpus: 1
volumes:
- name: 'volume-1'
device: 'disk'
format: 'qcow2'
pool: 'airship'
interfaces:
- network: 'provision-network'
libvirt_networks:
- network_action: create
autostart: false
name: oob-net
spec:
bridge:
name: oob-net
stp: 'on'
delay: '0'
ip:
address: "10.23.22.1"
netmask: "255.255.255.0"
dhcp:
- range:
start: 10.23.22.100
end: 10.23.22.199
- network_action: create
name: provision-network
spec:
forward:
mode: nat
nat:
port:
- start: 1024
end: 65535
bridge:
name: "prov-net-br"
stp: 'on'
delay: '0'
ip:
address: "172.22.0.1"
netmask: "255.255.255.0"