Merge "Filter null/None service names"
[apex-tripleo-heat-templates.git] / puppet / services / ceph-mon.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Ceph Monitor service.
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   CephIPv6:
13     default: False
14     type: boolean
15   CephMonKey:
16     description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
17     type: string
18     hidden: true
19   CinderRbdPoolName:
20     default: volumes
21     type: string
22   CinderBackupRbdPoolName:
23     default: backups
24     type: string
25   GlanceRbdPoolName:
26     default: images
27     type: string
28   GnocchiRbdPoolName:
29     default: metrics
30     type: string
31   NovaRbdPoolName:
32     default: vms
33     type: string
34
35 resources:
36   CephBase:
37     type: ./ceph-base.yaml
38
39 outputs:
40   role_data:
41     description: Role data for the Ceph Monitor service.
42     value:
43       service_name: ceph_mon
44       config_settings:
45         map_merge:
46           - get_attr: [CephBase, role_data, config_settings]
47           - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
48             ceph::profile::params::mon_key: {get_param: CephMonKey}
49             tripleo::profile::base::ceph::mon::ceph_pools:
50               - {get_param: CinderRbdPoolName}
51               - {get_param: CinderBackupRbdPoolName}
52               - {get_param: NovaRbdPoolName}
53               - {get_param: GlanceRbdPoolName}
54               - {get_param: GnocchiRbdPoolName}
55             tripleo.ceph_mon.firewall_rules:
56               '110 ceph_mon':
57                 dport:
58                   - 6789
59       step_config: |
60         include ::tripleo::profile::base::ceph::mon