blob: c32342b90d15457db5f6a086087451952eac21be [file] [log] [blame]
Brian Freeman48d30542019-08-20 13:13:58 -05001heat_template_version: 2015-10-15
2
3resources:
4 influxdb_data:
5 type: OS::Cinder::Volume
6 properties:
7 size: 100
8 grafana:
9 type: OS::Nova::Server
10 properties:
11 name: grafana
12 image: bionic
13 flavor: m1.large
14 key_name: mykey
15 networks:
16 - network: c5ef4668-8a11-441d-8ce8-4a211a94885f
17 user_data_format: RAW
18 user_data:
19 str_replace:
20 params:
21 "%voldata_id%": { get_resource: influxdb_data }
22 template:
23 get_file: grafana_vm_config.yaml
24 influxdb_data_att:
25 type: OS::Cinder::VolumeAttachment
26 properties:
27 instance_uuid: { get_resource: grafana }
28 volume_id: { get_resource: influxdb_data }
29
30outputs:
31 instance_name:
32 description: Name of the instance.
33 value: { get_attr: [ grafana, name ] }
34 instance_ip:
35 description: IP address of the instance.
36 value: { get_attr: [ grafana, first_address ] }