Merge "Add CephConfigOverrides to allow arbitrary configs in ceph.conf" into stable...
[apex-tripleo-heat-templates.git] / docker / services / ceph-ansible / ceph-osd.yaml
1 heat_template_version: pike
2
3 description: >
4   Ceph OSD service.
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   CephAnsibleDisksConfig:
34     type: json
35     description: Disks config settings for ceph-ansible
36     default:
37       devices:
38       - /dev/vdb
39       journal_size: 512
40       journal_collocation: true
41       osd_scenario: collocated
42
43 resources:
44   CephBase:
45     type: ./ceph-base.yaml
46     properties:
47       ServiceData: {get_param: ServiceData}
48       ServiceNetMap: {get_param: ServiceNetMap}
49       DefaultPasswords: {get_param: DefaultPasswords}
50       EndpointMap: {get_param: EndpointMap}
51       RoleName: {get_param: RoleName}
52       RoleParameters: {get_param: RoleParameters}
53
54 outputs:
55   role_data:
56     description: Role data for the Ceph OSD service.
57     value:
58       service_name: ceph_osd
59       upgrade_tasks: []
60       step_config: ''
61       puppet_config:
62         config_image: ''
63         config_volume: ''
64         step_config: ''
65       docker_config: {}
66       service_workflow_tasks: {get_attr: [CephBase, role_data, service_workflow_tasks]}
67       config_settings:
68         map_merge:
69         - tripleo.ceph_osd.firewall_rules:
70             '111 ceph_osd':
71               dport:
72               - '6800-7300'
73         - ceph_osd_ansible_vars:
74             map_merge:
75             - {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]}
76             - osd_objectstore: filestore
77             - {get_param: CephAnsibleDisksConfig}