Merge "Remove osd_pool_default_min_size to allow Ceph cluster to do the right thing...
[apex-tripleo-heat-templates.git] / puppet / services / memcached.yaml
1 heat_template_version: pike
2
3 description: >
4   Memcached service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   MemcachedMaxMemory:
30     default: '50%'
31     description: The maximum amount of memory for memcached to be configured
32                  to use when installed. This can be either a percentage ('50%')
33                  or a fixed value ('2048').
34     type: string
35   MonitoringSubscriptionMemcached:
36     default: 'overcloud-memcached'
37     type: string
38
39 outputs:
40   role_data:
41     description: Role data for the Memcached role.
42     value:
43       service_name: memcached
44       monitoring_subscription: {get_param: MonitoringSubscriptionMemcached}
45       config_settings:
46         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
47         # for the given network; replacement examples (eg. for internal_api):
48         # internal_api -> IP
49         # internal_api_uri -> [IP]
50         # internal_api_subnet - > IP/CIDR
51         memcached::listen_ip: {get_param: [ServiceNetMap, MemcachedNetwork]}
52         memcached::max_memory: {get_param: MemcachedMaxMemory}
53         tripleo.memcached.firewall_rules:
54           '121 memcached':
55             dport: 11211
56       step_config: |
57         include ::tripleo::profile::base::memcached
58       service_config_settings:
59         collectd:
60             tripleo.collectd.plugins.memcached:
61               - memcached
62             collectd::plugin::memcached::instances:
63               local:
64                 host: "%{hiera('memcached::listen_ip')}"
65                 port: 11211