Merge "Update: clean keepalived and radvd instances after pcs cluster stop"
[apex-tripleo-heat-templates.git] / deprecated / swift-storage-source.yaml
1 heat_template_version: 2013-05-23
2 description: 'Common Swift Storage Configuration'
3 parameters:
4   OvercloudSwiftStorageFlavor:
5     description: Flavor for Swift storage nodes to request when deploying.
6     type: string
7     constraints:
8       - custom_constraint: nova.flavor
9   SwiftReplicas:
10     type: number
11     default: 1
12     description: How many replicas to use in the swift rings.
13   SwiftStorageImage:
14     type: string
15     default: overcloud-swift-storage
16 resources:
17   SwiftStorage0:
18     type: OS::Nova::Server
19     properties:
20       image: {get_param: SwiftStorageImage}
21       flavor: {get_param: OvercloudSwiftStorageFlavor}
22       key_name: {get_param: KeyName}
23       user_data_format: SOFTWARE_CONFIG
24   SwiftKeystoneConfig:
25     type: OS::Heat::StructuredConfig
26     properties:
27       config:
28         keystone:
29           host: {get_input: keystone_host}
30   SwiftStorage0Keystone:
31     type: OS::Heat::StructuredDeployment
32     properties:
33       server: {get_resource: SwiftStorage0}
34       config: {get_resource: SwiftKeystoneConfig}
35       signal_transport: NO_SIGNAL
36       input_values:
37         keystone_host: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
38   SwiftStorage0Deploy:
39     type: OS::Heat::StructuredDeployment
40     properties:
41       server: {get_resource: SwiftStorage0}
42       config: {get_resource: SwiftConfig}
43       signal_transport: NO_SIGNAL
44       input_values:
45         swift_hash_suffix: {get_param: SwiftHashSuffix}
46         swift_mount_check: {get_param: SwiftMountCheck}
47         swift_password: {get_param: SwiftPassword}
48         swift_part_power: {get_param: SwiftPartPower}
49         swift_devices:
50           Fn::Join:
51           - ', '
52           - Merge::Map:
53               controller0:
54                 Fn::Join:
55                 - ''
56                 - - 'r1z1-'
57                   - {get_attr: [controller0, networks, ctlplane, 0]}
58                   - ':%PORT%/d1'
59               SwiftStorage0:
60                 Fn::Join:
61                 - ''
62                 - - 'r1z1-'
63                   - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
64                   - ':%PORT%/d1'
65         swift_proxy_memcache:
66           Fn::Join:
67             - ','
68             - Merge::Map:
69                 controller0:
70                   Fn::Join:
71                     - ', '
72                     - - Fn::Join:
73                         - ''
74                         - - {get_attr: [controller0, networks, ctlplane, 0]}
75                           - ':11211'
76         swift_replicas: { get_param: SwiftReplicas}
77         swift_min_part_hours: { get_param: SwiftMinPartHours}