tempest/tempest/cmd/resources.yaml
Emilien Macchi 7a2348bca6 javelin: add network and secgroup resources
This patch aims to bring Neutron support in tempest/javelin by:
- create networks
- create subnets in the networks
- create routers
- connect routers to networks
- Create security groups and rules
- Assign a security group after server creation
- Check security groups survive after upgrade

Partial-bug #1330178
Change-Id: I2f54aec71e452361f9741b4ccb5d5bb6f358abf9
Co-Authored-By: Jakub Libosvar <libosvar@redhat.com>
2014-11-12 10:45:48 +01:00

97 lines
1.9 KiB
YAML

# This is a yaml description for the most basic definitions
# of what should exist across the resource boundary. Perhaps
# one day this will grow into a Heat resource template, but as
# Heat isn't a known working element in the upgrades, we do
# this much simpler thing for now.
tenants:
- javelin
- discuss
users:
- name: javelin
pass: gungnir
tenant: javelin
- name: javelin2
pass: gungnir2
tenant: discuss
secgroups:
- name: angon
owner: javelin
description: angon
rules:
- 'icmp -1 -1 0.0.0.0/0'
- 'tcp 22 22 0.0.0.0/0'
- name: baobab
owner: javelin
description: baobab
rules:
- 'tcp 80 80 0.0.0.0/0'
# resources that we want to create
images:
- name: javelin_cirros
owner: javelin
imgdir: files/images/cirros-0.3.2-x86_64-uec
file: cirros-0.3.2-x86_64-blank.img
format: ami
aki: cirros-0.3.2-x86_64-vmlinuz
ari: cirros-0.3.2-x86_64-initrd
volumes:
- name: assegai
server: peltast
owner: javelin
gb: 1
device: /dev/vdb
- name: pifpouf
server: hoplite
owner: javelin
gb: 2
device: /dev/vdb
networks:
- name: world1
owner: javelin
- name: world2
owner: javelin
subnets:
- name: subnet1
range: 10.1.0.0/24
network: world1
owner: javelin
- name: subnet2
range: 192.168.1.0/24
network: world2
owner: javelin
routers:
- name: connector
owner: javelin
gateway: true
subnet:
- subnet1
- subnet2
servers:
- name: peltast
owner: javelin
flavor: m1.small
image: javelin_cirros
networks:
- world1
secgroups:
- angon
- baobab
- name: hoplite
owner: javelin
flavor: m1.medium
image: javelin_cirros
networks:
- world2
secgroups:
- angon
objects:
- container: jc1
name: javelin1
owner: javelin
file: /etc/hosts
telemetry: true