Merge "Make all default values match overcloud defaults"
[apex-tripleo-heat-templates.git] / puppet / all-nodes-config.yaml
1 heat_template_version: 2014-10-16
2 description: 'All Nodes Config for Puppet'
3
4 parameters:
5   compute_hosts:
6     type: comma_delimited_list
7   controller_hosts:
8     type: comma_delimited_list
9   controller_ips:
10     type: comma_delimited_list
11   block_storage_hosts:
12     type: comma_delimited_list
13   object_storage_hosts:
14     type: comma_delimited_list
15   ceph_storage_hosts:
16     type: comma_delimited_list
17   controller_names:
18     type: comma_delimited_list
19
20 resources:
21
22   allNodesConfigImpl:
23     type: OS::Heat::StructuredConfig
24     properties:
25       config:
26         completion-signal: {get_input: deploy_signal_id}
27         hosts:
28           list_join:
29           - "\n"
30           - - list_join:
31               - "\n"
32               - {get_param: compute_hosts}
33             - list_join:
34               - "\n"
35               - {get_param: controller_hosts}
36             - list_join:
37               - "\n"
38               - {get_param: block_storage_hosts}
39             - list_join:
40               - "\n"
41               - {get_param: object_storage_hosts}
42             - list_join:
43               - "\n"
44               - {get_param: ceph_storage_hosts}
45         sysctl:
46           net.ipv4.tcp_keepalive_time: 5
47           net.ipv4.tcp_keepalive_probes: 5
48           net.ipv4.tcp_keepalive_intvl: 1
49         hiera:
50           datafiles:
51             all_nodes:
52               mapped_data:
53                 controller_node_ips:
54                   list_join:
55                   - ','
56                   - {get_param: controller_ips}
57                 rabbit_node_names:
58                   list_join:
59                   - ','
60                   - {get_param: controller_names}
61                 mongo_node_ips:
62                   list_join:
63                   - ','
64                   - {get_param: controller_ips}
65                 redis_node_ips:
66                   list_join:
67                   - ','
68                   - {get_param: controller_ips}
69
70 outputs:
71   config_id:
72     description: The ID of the allNodesConfigImpl resource.
73     value:
74       {get_resource: allNodesConfigImpl}