1 heat_template_version: pike
4 OpenStack containerized OpenDaylight API service
7 DockerOpendaylightApiImage:
10 DockerOpendaylightConfigImage:
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
43 type: ./containers-common.yaml
46 type: ../../puppet/services/opendaylight-api.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 RoleName: {get_param: RoleName}
53 RoleParameters: {get_param: RoleParameters}
57 description: Role data for the OpenDaylight API role.
59 service_name: {get_attr: [OpenDaylightBase, role_data, service_name]}
62 - get_attr: [OpenDaylightBase, role_data, config_settings]
63 step_config: &step_config
66 - - get_attr: [OpenDaylightBase, role_data, step_config]
67 - "include tripleo::profile::base::neutron::opendaylight::create_cluster"
68 # BEGIN DOCKER SETTINGS
70 config_volume: opendaylight
71 # 'file,concat,file_line,augeas' are included by default
72 puppet_tags: odl_user,tripleo::profile::base::neutron::opendaylight::configure_cluster
73 step_config: *step_config
74 config_image: {get_param: DockerOpendaylightConfigImage}
76 /var/lib/kolla/config_files/opendaylight_api.json:
77 command: /opt/opendaylight/bin/karaf
79 - source: "/var/lib/kolla/config_files/src/*"
82 preserve_properties: true
84 - path: /opt/opendaylight
91 image: &odl_api_image {get_param: DockerOpendaylightApiImage}
99 - {get_attr: [ContainersCommon, volumes]}
101 - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro
102 - /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro
104 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
107 - name: Stop and disable opendaylight_api service
109 service: name=opendaylight state=stopped enabled=no