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 - path: /opt/opendaylight
93 - [ {get_param: DockerNamespace}, {get_param: DockerOpendaylightApiImage} ]
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/opendaylight/opt/opendaylight/data/idmlight.db.mv.db:/opt/opendaylight/data/idmlight.db.mv.db
105 - /var/lib/config-data/opendaylight/opt/opendaylight/configuration/initial/:/opt/opendaylight/configuration/initial/
106 - /var/lib/config-data/opendaylight/opt/opendaylight/etc/jetty.xml:/opt/opendaylight/etc/jetty.xml:ro
107 - /var/lib/config-data/opendaylight/opt/opendaylight/etc/org.apache.karaf.features.cfg:/opt/opendaylight/etc/org.apache.karaf.features.cfg:ro
108 - /var/lib/config-data/opendaylight/opt/opendaylight/etc/org.ops4j.pax.logging.cfg:/opt/opendaylight/etc/org.ops4j.pax.logging.cfg:ro
109 - /var/lib/config-data/opendaylight/opt/opendaylight/etc/org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.startup.cfg:/opt/opendaylight/etc/org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.startup.cfg:ro
111 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
114 - name: Stop and disable opendaylight_api service
116 service: name=opendaylight state=stopped enabled=no