aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/ceph-mon.yaml
blob: 68a59450490ba81938356a8927231f09db7e369e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
heat_template_version: 2016-04-08

description: >
  Ceph Monitor service.

parameters:
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  CephIPv6:
    default: False
    type: boolean
  CephMonKey:
    default: ''
    description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
    type: string
    hidden: true
  CinderRbdPoolName:
    default: volumes
    type: string
  CinderBackupRbdPoolName:
    default: backups
    type: string
  GlanceRbdPoolName:
    default: images
    type: string
  GnocchiRbdPoolName:
    default: metrics
    type: string
  NovaRbdPoolName:
    default: vms
    type: string

resources:
  CephBase:
    type: ./ceph-base.yaml

outputs:
  role_data:
    description: Role data for the Ceph Monitor service.
    value:
      service_name: ceph-mon
      config_settings:
        map_merge:
          - get_attr: [CephBase, role_data, config_settings]
          - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
            ceph::profile::params::mon_key: {get_param: CephMonKey}
            tripleo::profile::base::ceph::mon::ceph_pools:
              - {get_param: CinderRbdPoolName}
              - {get_param: CinderBackupRbdPoolName}
              - {get_param: NovaRbdPoolName}
              - {get_param: GlanceRbdPoolName}
              - {get_param: GnocchiRbdPoolName}
      step_config: |
        include ::tripleo::profile::base::ceph::mon