146cc306129630230f9b89d28c4ba7346025d06a
[apex-tripleo-heat-templates.git] / puppet / services / memcached.yaml
1 heat_template_version: ocata
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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   MemcachedMaxMemory:
22     default: '50%'
23     description: The maximum amount of memory for memcached to be configured
24                  to use when installed. This can be either a percentage ('50%')
25                  or a fixed value ('2048').
26     type: string
27   MonitoringSubscriptionMemcached:
28     default: 'overcloud-memcached'
29     type: string
30
31 outputs:
32   role_data:
33     description: Role data for the Memcached role.
34     value:
35       service_name: memcached
36       monitoring_subscription: {get_param: MonitoringSubscriptionMemcached}
37       config_settings:
38         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
39         # for the given network; replacement examples (eg. for internal_api):
40         # internal_api -> IP
41         # internal_api_uri -> [IP]
42         # internal_api_subnet - > IP/CIDR
43         memcached::listen_ip: {get_param: [ServiceNetMap, MemcachedNetwork]}
44         memcached::max_memory: {get_param: MemcachedMaxMemory}
45         tripleo.memcached.firewall_rules:
46           '121 memcached':
47             dport: 11211
48       step_config: |
49         include ::tripleo::profile::base::memcached
50       service_config_settings:
51         collectd:
52             tripleo.collectd.plugins.memcached:
53               - memcached
54             collectd::plugin::memcached::instances:
55               local:
56                 host: "%{hiera('memcached::listen_ip')}"
57                 port: 11211