summaryrefslogtreecommitdiffstats
path: root/storperf/resources/hot/agent-group.yaml
blob: 315ecf3609a230c9f81ab000422801522220bf52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##############################################################################
# Copyright (c) 2015 EMC and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

heat_template_version: 2013-05-23

parameters:
  agent_network:
    type: string
    constraints:
        - custom_constraint: neutron.network
  flavor:
    type: string
    default: "StorPerf Agent"
  key_name:
    type: string
    default: StorPerf
  volume_size:
    type: number
    description: Size of the volume to be created.
    default: 1
    constraints:
      - range: { min: 1, max: 1024 }
        description: must be between 1 and 1024 Gb.
  agent_count:
    type: number
    default: 1
    constraints:
      - range: { min: 1, max: 512 }
        description: must be between 1 and 512 agents.


resources:
  slaves:
    type: OS::Heat::ResourceGroup
    properties:
      count: {get_param: agent_count}
      resource_def: {
        type: "storperf-agent.yaml",
        properties: {
          agent_network: {get_param: agent_network},
          flavor: {get_param: flavor},
          key_name: {get_param: key_name},
          volume_size: {get_param: volume_size}
        }
      }

outputs:
  slave_ips: {
      description: "Slave addresses",
      value: { get_attr: [ slaves, storperf_agent_ip] }
  }