diff options
author | Zuul <zuul@review.opendev.org> | 2020-02-21 07:28:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-02-21 07:28:52 +0000 |
commit | 8a20477005a6d9ab1e647597695aefc91328e5ea (patch) | |
tree | 8b947e9744e9cead08c6c4c051ca1aeb77634ed0 /hot/blazar/blazar_lease.yaml | |
parent | 0440e8a9e4780dc16f392be1d06780466067d498 (diff) | |
parent | f8cf393737dbad1225222718c80c83b34d93789e (diff) | |
download | heat-templates-8a20477005a6d9ab1e647597695aefc91328e5ea.tar.gz |
Merge "Add sample templates for Blazar"
Diffstat (limited to 'hot/blazar/blazar_lease.yaml')
-rw-r--r-- | hot/blazar/blazar_lease.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/hot/blazar/blazar_lease.yaml b/hot/blazar/blazar_lease.yaml new file mode 100644 index 0000000..9840749 --- /dev/null +++ b/hot/blazar/blazar_lease.yaml @@ -0,0 +1,37 @@ +heat_template_version: 2018-08-31 + +description: Sample Blazar lease template + +parameters: + name: + type: string + description: The name of the lease + default: sample_blazar_lease + +resources: + sample_lease: + type: OS::Blazar::Lease + properties: + name: {get_param: name} + start_date: "2030-01-01 10:00" + end_date: "2030-01-10 10:00" + reservations: + - resource_type: "physical:host" + min: 4 + max: 6 + hypervisor_properties: "[\">=\", \"$vcpus\", \"4\"]" + resource_properties: "" + - resource_type: "virtual:instance" + amount: 4 + vcpus: 2 + memory_mb: 4096 + disk_gb: 100 + affinity: false + +outputs: + host_reservation_id: + value: {get_attr: [sample_lease, reservations, 0, id]} + description: ID of host reservation + instance_reservation_id: + value: {get_attr: [sample_lease, reservations, 1, id]} + description: ID of instance reservation |