Convert service_name to underscore syntax
[apex-tripleo-heat-templates.git] / puppet / services / nova-compute.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova Compute service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   NovaRbdPoolName:
13     default: vms
14     type: string
15   CephClientUserName:
16     default: openstack
17     type: string
18
19 resources:
20   NovaBase:
21     type: ./nova-base.yaml
22     properties:
23       EndpointMap: {get_param: EndpointMap}
24
25 outputs:
26   role_data:
27     description: Role data for the Nova Compute service.
28     value:
29       service_name: nova_compute
30       config_settings:
31         map_merge:
32           - get_attr: [NovaBase, role_data, config_settings]
33           - nova::compute::libvirt::manage_libvirt_services: false
34           # we manage migration in nova common puppet profile
35             nova::compute::libvirt::migration_support: false
36             tripleo::profile::base::nova::manage_migration: true
37             tripleo::profile::base::nova::nova_compute_enabled: true
38             nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
39             nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
40             nova::compute::rbd::rbd_keyring:
41               list_join:
42               - '.'
43               - - 'client'
44                 - {get_param: CephClientUserName}
45       step_config: |
46         # TODO(emilien): figure how to deal with libvirt profile.
47         # We'll probably threat it like we do with Neutron plugins.
48         # Until then, just include it in the default nova-compute role.
49         include tripleo::profile::base::nova::compute::libvirt