Merge "Add parameters for Veritas HyperScale distributed setup."
[apex-tripleo-heat-templates.git] / puppet / services / nova-migration-target.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Nova migration target configured with Puppet
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   MigrationSshKey:
34     type: json
35     description: >
36       SSH key for migration.
37       Expects a dictionary with keys 'public_key' and 'private_key'.
38       Values should be identical to SSH public/private key files.
39     default:
40       public_key: ''
41       private_key: ''
42
43 outputs:
44   role_data:
45     description: Role data for the Nova migration target service.
46     value:
47       service_name: nova_migration_target
48       config_settings:
49         tripleo::profile::base::nova::migration::target::ssh_authorized_keys:
50           - {get_param: [ MigrationSshKey, public_key ]}
51         tripleo::profile::base::nova::migration::target::ssh_localaddrs:
52           - "%{hiera('cold_migration_ssh_inbound_addr')}"
53           - "%{hiera('live_migration_ssh_inbound_addr')}"
54         live_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
55         cold_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaColdMigrationNetwork]}
56       step_config: |
57         include tripleo::profile::base::nova::migration::target