Merge "Consistent hostname format env for split-stack"
[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
42 resources:
43   CephBase:
44     type: ./ceph-base.yaml
45     properties:
46       ServiceData: {get_param: ServiceData}
47       ServiceNetMap: {get_param: ServiceNetMap}
48       DefaultPasswords: {get_param: DefaultPasswords}
49       EndpointMap: {get_param: EndpointMap}
50       RoleName: {get_param: RoleName}
51       RoleParameters: {get_param: RoleParameters}
52
53 outputs:
54   role_data:
55     description: Role data for the Ceph OSD service.
56     value:
57       service_name: ceph_osd
58       upgrade_tasks: []
59       step_config: ''
60       puppet_config:
61         config_image: ''
62         config_volume: ''
63         step_config: ''
64       docker_config: {}
65       service_workflow_tasks: {get_attr: [CephBase, role_data, service_workflow_tasks]}
66       config_settings:
67         map_merge:
68         - tripleo.ceph_osd.firewall_rules:
69             '111 ceph_osd':
70               dport:
71               - '6800-7300'
72         - ceph_osd_ansible_vars:
73             map_merge:
74             - {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]}
75             - {get_param: CephAnsibleDisksConfig}