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