1 heat_template_version: pike
4 OpenStack containerized Ovn Controller agent.
9 description: Mapping of service endpoint -> protocol. Typically set
10 via parameter_defaults in the resource registry.
14 description: Mapping of service_name -> network name. Typically set
15 via parameter_defaults in the resource registry. This
16 mapping overrides those in ServiceNetMapDefaults.
20 description: Dictionary packing service data
22 DockerOvnControllerImage:
25 DockerOvnControllerConfigImage:
26 description: The container image to use for the ovn_controller config_volume
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/ovn-controller.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 Ovn Controller agent.
59 service_name: {get_attr: [OvnControllerBase, role_data, service_name]}
62 - get_attr: [OvnControllerBase, role_data, config_settings]
63 logging_source: {get_attr: [OvnControllerBase, role_data, logging_source]}
64 logging_groups: {get_attr: [OvnControllerBase, role_data, logging_groups]}
65 step_config: &step_config
66 get_attr: [OvnControllerBase, role_data, step_config]
67 service_config_settings: {get_attr: [OvnControllerBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
70 puppet_tags: vs_config
71 config_volume: ovn_controller
72 step_config: *step_config
73 config_image: {get_param: DockerOvnControllerConfigImage}
74 # We need to mount /run for puppet_config step. This is because
75 # puppet-vswitch runs the commands "ovs-vsctl set open_vswitch . external_ids:..."
76 # to configure the required parameters in ovs db which will be read
77 # by ovn-controller. And ovs-vsctl talks to the ovsdb-server (hosting conf.db)
78 # on the unix domain socket - /run/openvswitch/db.sock
80 - /lib/modules:/lib/modules:ro
81 - /run/openvswitch:/run/openvswitch
83 /var/lib/kolla/config_files/ovn_controller.json:
84 command: /usr/bin/ovn-controller --pidfile --log-file unix:/run/openvswitch/db.sock
86 - path: /var/log/openvswitch
92 image: {get_param: DockerOvnControllerImage}
98 - /var/lib/kolla/config_files/ovn_controller.json:/var/lib/kolla/config_files/config.json:ro
99 - /lib/modules:/lib/modules:ro
100 - /run/openvswitch:/run/openvswitch
101 - /var/log/containers/openvswitch:/var/log/openvswitch
103 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
105 - name: Stop and disable ovn-controller service
107 service: name=ovn-controller state=stopped enabled=no