diff options
author | kaz_shinohara <ksnhr.tech@gmail.com> | 2018-06-08 17:16:00 +0900 |
---|---|---|
committer | Asmita Singh <Asmita.Singh@nttdata.com> | 2019-03-08 07:08:32 +0000 |
commit | f8cf393737dbad1225222718c80c83b34d93789e (patch) | |
tree | f4c72d37a36c4726f30b49c9007515de2378737d | |
parent | 6b5a7cd2b5fddcee647dbc38d8b9100384157d05 (diff) | |
download | heat-templates-f8cf393737dbad1225222718c80c83b34d93789e.tar.gz |
Add sample templates for Blazar
Since Rocky, Heat supports Blazar which is a reservation service in
OpenStack. This patch provides sample templates regarding Blazar Host
and Lease resources accordingly.
Change-Id: I169a96c63eee59ec9b0d098f86709e6d02d1209f
Depends-On: I1392919540a6bdd67ce7078e3a1206ecdb9854e1
-rw-r--r-- | hot/blazar/blazar_host.yaml | 20 | ||||
-rw-r--r-- | hot/blazar/blazar_lease.yaml | 37 |
2 files changed, 57 insertions, 0 deletions
diff --git a/hot/blazar/blazar_host.yaml b/hot/blazar/blazar_host.yaml new file mode 100644 index 0000000..1ec65e1 --- /dev/null +++ b/hot/blazar/blazar_host.yaml @@ -0,0 +1,20 @@ +heat_template_version: 2018-08-31 + +description: Sample Blazar host template + +parameters: + name: + type: string + description: The name of the host + default: sample_blazar_host + +resources: + sample_host: + type: OS::Blazar::Host + properties: + name: {get_param: name} + +outputs: + cpu_info: + value: {get_attr: [sample_host, cpu_info]} + description: Information of the CPU of the host 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 |