tacker/tacker/tests/unit/vnfm/infra_drivers/openstack/data/hot_tosca_openwrt_userdata....

30 lines
650 B
YAML

heat_template_version: 2013-05-23
description: 'OpenWRT with services
'
parameters: {}
resources:
VDU1:
type: OS::Nova::Server
properties:
config_drive: false
flavor: m1.tiny
image: OpenWRT
networks:
- port:
get_resource: CP1
user_data_format: RAW
user_data: |
#!/bin/sh
echo "my hostname is `hostname`" > /tmp/hostname
df -h > /home/openwrt/diskinfo
CP1:
type: OS::Neutron::Port
properties:
network: existing_network_1
port_security_enabled: false
outputs:
mgmt_ip-VDU1:
value:
get_attr: [CP1, fixed_ips, 0, ip_address]