Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / services / ceph-mon.yaml
1 heat_template_version: ocata
2
3 description: >
4   Ceph Monitor service.
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   CephIPv6:
22     default: False
23     type: boolean
24   CephMonKey:
25     description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
26     type: string
27     hidden: true
28   CinderRbdPoolName:
29     default: volumes
30     type: string
31   CinderBackupRbdPoolName:
32     default: backups
33     type: string
34   GlanceRbdPoolName:
35     default: images
36     type: string
37   GnocchiRbdPoolName:
38     default: metrics
39     type: string
40   NovaRbdPoolName:
41     default: vms
42     type: string
43   CephPools:
44     description: >
45       It can be used to override settings for one of the predefined pools, or to create
46       additional ones. Example:
47       {
48         "volumes": {
49           "size": 5,
50           "pg_num": 128,
51           "pgp_num": 128
52          }
53       }
54     default: {}
55     type: json
56   MonitoringSubscriptionCephMon:
57     default: 'overcloud-ceph-mon'
58     type: string
59
60 resources:
61   CephBase:
62     type: ./ceph-base.yaml
63     properties:
64       ServiceNetMap: {get_param: ServiceNetMap}
65       DefaultPasswords: {get_param: DefaultPasswords}
66       EndpointMap: {get_param: EndpointMap}
67
68 outputs:
69   role_data:
70     description: Role data for the Ceph Monitor service.
71     value:
72       service_name: ceph_mon
73       monitoring_subscription: {get_param: MonitoringSubscriptionCephMon}
74       config_settings:
75         map_merge:
76           - get_attr: [CephBase, role_data, config_settings]
77           - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
78             ceph::profile::params::mon_key: {get_param: CephMonKey}
79             ceph::profile::params::osd_pool_default_pg_num: 32
80             ceph::profile::params::osd_pool_default_pgp_num: 32
81             ceph::profile::params::osd_pool_default_size: 3
82             # repeat returns items in a list, so we need to map_merge twice
83             tripleo::profile::base::ceph::mon::ceph_pools:
84               map_merge:
85                 - map_merge:
86                     repeat:
87                       for_each:
88                         <%pool%>:
89                           - {get_param: CinderRbdPoolName}
90                           - {get_param: CinderBackupRbdPoolName}
91                           - {get_param: NovaRbdPoolName}
92                           - {get_param: GlanceRbdPoolName}
93                           - {get_param: GnocchiRbdPoolName}
94                       template:
95                         <%pool%>:
96                           pg_num: "%{hiera('ceph::profile::params::osd_pool_default_pg_num')}"
97                           pgp_num: "%{hiera('ceph::profile::params::osd_pool_default_pgp_num')}"
98                           size: "%{hiera('ceph::profile::params::osd_pool_default_size')}"
99                 - {get_param: CephPools}
100             tripleo.ceph_mon.firewall_rules:
101               '110 ceph_mon':
102                 dport:
103                   - 6789
104       service_config_settings:
105         get_attr: [CephBase, role_data, service_config_settings]
106       step_config: |
107         include ::tripleo::profile::base::ceph::mon