Merge "Set MDS/OSD firewall ports from ceph-osd template"
[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     default: ''
17     description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
18     type: string
19     hidden: true
20   CinderRbdPoolName:
21     default: volumes
22     type: string
23   CinderBackupRbdPoolName:
24     default: backups
25     type: string
26   GlanceRbdPoolName:
27     default: images
28     type: string
29   GnocchiRbdPoolName:
30     default: metrics
31     type: string
32   NovaRbdPoolName:
33     default: vms
34     type: string
35
36 resources:
37   CephBase:
38     type: ./ceph-base.yaml
39
40 outputs:
41   role_data:
42     description: Role data for the Ceph Monitor service.
43     value:
44       service_name: ceph-mon
45       config_settings:
46         map_merge:
47           - get_attr: [CephBase, role_data, config_settings]
48           - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
49             ceph::profile::params::mon_key: {get_param: CephMonKey}
50             tripleo::profile::base::ceph::mon::ceph_pools:
51               - {get_param: CinderRbdPoolName}
52               - {get_param: CinderBackupRbdPoolName}
53               - {get_param: NovaRbdPoolName}
54               - {get_param: GlanceRbdPoolName}
55               - {get_param: GnocchiRbdPoolName}
56             tripleo.ceph_mon.firewall_rules:
57               '110 ceph_mon':
58                 dport:
59                   - 6789
60       step_config: |
61         include ::tripleo::profile::base::ceph::mon