1 heat_template_version: pike
4 OpenStack containerized OpenDaylight API service
9 default: 'tripleoupstream'
11 DockerOpendaylightApiImage:
13 default: 'centos-binary-opendaylight:latest'
15 DockerOpendaylightConfigImage:
17 default: 'centos-binary-opendaylight:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
49 type: ./containers-common.yaml
52 type: ../../puppet/services/opendaylight-api.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceData: {get_param: ServiceData}
56 ServiceNetMap: {get_param: ServiceNetMap}
57 DefaultPasswords: {get_param: DefaultPasswords}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
63 description: Role data for the OpenDaylight API role.
65 service_name: {get_attr: [OpenDaylightBase, role_data, service_name]}
68 - get_attr: [OpenDaylightBase, role_data, config_settings]
69 step_config: &step_config
72 - - get_attr: [OpenDaylightBase, role_data, step_config]
73 - "include tripleo::profile::base::neutron::opendaylight::create_cluster"
74 # BEGIN DOCKER SETTINGS
76 config_volume: opendaylight
77 # 'file,concat,file_line,augeas' are included by default
78 puppet_tags: odl_user,tripleo::profile::base::neutron::opendaylight::configure_cluster
79 step_config: *step_config
83 - [ {get_param: DockerNamespace}, {get_param: DockerOpendaylightConfigImage} ]
85 /var/lib/kolla/config_files/opendaylight_api.json:
86 command: /opt/opendaylight/bin/karaf
88 - source: "/var/lib/kolla/config_files/src/*"
91 preserve_properties: true
93 - path: /opt/opendaylight
100 image: &odl_api_image
103 - [ {get_param: DockerNamespace}, {get_param: DockerOpendaylightApiImage} ]
111 - {get_attr: [ContainersCommon, volumes]}
113 - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro
114 - /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro
116 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
119 - name: Stop and disable opendaylight_api service
121 service: name=opendaylight state=stopped enabled=no