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 step_config: &step_config
64 get_attr: [OvnControllerBase, role_data, step_config]
65 service_config_settings: {get_attr: [OvnControllerBase, role_data, service_config_settings]}
66 # BEGIN DOCKER SETTINGS
68 puppet_tags: vs_config
69 config_volume: ovn_controller
70 step_config: *step_config
71 config_image: {get_param: DockerOvnControllerConfigImage}
72 # We need to mount /run for puppet_config step. This is because
73 # puppet-vswitch runs the commands "ovs-vsctl set open_vswitch . external_ids:..."
74 # to configure the required parameters in ovs db which will be read
75 # by ovn-controller. And ovs-vsctl talks to the ovsdb-server (hosting conf.db)
76 # on the unix domain socket - /run/openvswitch/db.sock
78 - /lib/modules:/lib/modules:ro
79 - /run/openvswitch:/run/openvswitch
81 /var/lib/kolla/config_files/ovn_controller.json:
82 command: /usr/bin/ovn-controller --pidfile --log-file unix:/run/openvswitch/db.sock
84 - path: /var/log/openvswitch
90 image: {get_param: DockerOvnControllerImage}
96 - /var/lib/kolla/config_files/ovn_controller.json:/var/lib/kolla/config_files/config.json:ro
97 - /lib/modules:/lib/modules:ro
98 - /run/openvswitch:/run/openvswitch
99 - /var/log/containers/openvswitch:/var/log/openvswitch
101 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
103 - name: Stop and disable ovn-controller service
105 service: name=ovn-controller state=stopped enabled=no