blob: 94fb79eeee2be866b99714ae0d090bad7e59a5c3 [file] [log] [blame]
Brian Freeman48d30542019-08-20 13:13:58 -05001heat_template_version: 2015-10-15
2
3resources:
4 jenkins_data:
5 type: OS::Cinder::Volume
6 properties:
7 size: 400
8 jenkins:
9 type: OS::Nova::Server
10 properties:
11 name: jenkins
12 image: bionic
13 flavor: m1.medium
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: jenkins_data }
22 template:
23 get_file: jenkins_vm_config.yaml
24 jenkins_data_att:
25 type: OS::Cinder::VolumeAttachment
26 properties:
27 instance_uuid: { get_resource: jenkins }
28 volume_id: { get_resource: jenkins_data }
29
30outputs:
31 instance_name:
32 description: Name of the instance.
33 value: { get_attr: [ jenkins, name ] }
34 instance_ip:
35 description: IP address of the instance.
36 value: { get_attr: [ jenkins, first_address ] }