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: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ./containers-common.yaml
48 type: ../../puppet/services/opendaylight-api.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the OpenDaylight API role.
60 service_name: {get_attr: [OpenDaylightBase, role_data, service_name]}
63 - get_attr: [OpenDaylightBase, role_data, config_settings]
64 step_config: &step_config
67 - - get_attr: [OpenDaylightBase, role_data, step_config]
68 - "include tripleo::profile::base::neutron::opendaylight::create_cluster"
69 # BEGIN DOCKER SETTINGS
71 config_volume: opendaylight
72 # 'file,concat,file_line,augeas' are included by default
73 puppet_tags: odl_user,tripleo::profile::base::neutron::opendaylight::configure_cluster
74 step_config: *step_config
78 - [ {get_param: DockerNamespace}, {get_param: DockerOpendaylightConfigImage} ]
80 /var/lib/kolla/config_files/opendaylight_api.json:
81 command: /opt/opendaylight/bin/karaf
83 - source: "/var/lib/kolla/config_files/src/*"
86 preserve_properties: true
88 - path: /opt/opendaylight
98 - [ {get_param: DockerNamespace}, {get_param: DockerOpendaylightApiImage} ]
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro
109 - /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro
111 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
114 - name: Stop and disable opendaylight_api service
116 service: name=opendaylight state=stopped enabled=no