summaryrefslogtreecommitdiffstats
path: root/puppet/ceph-cluster-config.yaml
blob: db1fd09d33fa47e8be4bdfa02650121964e12bf9 (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
heat_template_version: 2015-04-30
description: 'Ceph Cluster config data for Puppet'

parameters:
  NovaRbdPoolName:
    default: vms
    type: string
  CephClientUserName:
    default: openstack
    type: string

resources:
  CephClusterConfigImpl:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        hiera:
          datafiles:
            ceph_cluster:
              mapped_data:
                nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
                nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
                nova::compute::rbd::rbd_keyring:
                  list_join:
                  - '.'
                  - - 'client'
                    - {get_param: CephClientUserName}

outputs:
  config_id:
    description: The ID of the CephClusterConfigImpl resource.
    value:
      {get_resource: CephClusterConfigImpl}