Brian Freeman | 48d3054 | 2019-08-20 13:13:58 -0500 | [diff] [blame^] | 1 | heat_template_version: 2015-10-15 |
| 2 | |
| 3 | resources: |
| 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 | |
| 30 | outputs: |
| 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 ] } |