1 heat_template_version: pike
4 OpenStack containerized OVN DBs service managed by pacemaker
10 DockerOvnDbsConfigImage:
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
39 OVNNorthboundServerPort:
40 description: Port of the OVN Northbound DB server
43 OVNSouthboundServerPort:
44 description: Port of the OVN Southbound DB server
51 type: ./../containers-common.yaml
54 type: ../../../puppet/services/pacemaker/ovn-dbs.yaml
56 EndpointMap: {get_param: EndpointMap}
57 ServiceData: {get_param: ServiceData}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 RoleName: {get_param: RoleName}
61 RoleParameters: {get_param: RoleParameters}
62 OVNNorthboundServerPort: {get_param: OVNNorthboundServerPort}
63 OVNSouthboundServerPort: {get_param: OVNSouthboundServerPort}
67 description: Role data for the OVN Dbs HA role.
69 service_name: {get_attr: [OVNDbsBase, role_data, service_name]}
72 - get_attr: [OVNDbsBase, role_data, config_settings]
73 - tripleo::profile::pacemaker::ovn_dbs_bundle::ovn_dbs_docker_image: {get_param: DockerOvnDbsImage}
74 - tripleo::profile::pacemaker::ovn_dbs_bundle::nb_db_port: {get_param: OVNNorthboundServerPort}
75 - tripleo::profile::pacemaker::ovn_dbs_bundle::sb_db_port: {get_param: OVNSouthboundServerPort}
77 service_config_settings: {get_attr: [OVNDbsBase, role_data, service_config_settings]}
78 # BEGIN DOCKER SETTINGS
80 config_volume: 'ovn_dbs'
83 config_image: &ovn_dbs_config_image {get_param: DockerOvnDbsConfigImage}
85 /var/lib/kolla/config_files/ovn_dbs.json:
86 command: /usr/sbin/pacemaker_remoted
88 - dest: /etc/libqb/force-filesystem-sockets
92 - source: "/var/lib/kolla/config_files/src/*"
95 preserve_properties: true
104 config_volume: 'ovn_dbs_init_bundle'
112 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 3}' > /etc/puppet/hieradata/docker.json"
113 - "FACTER_uuid=docker puppet apply --tags file,file_line,concat,augeas,TAGS -v -e 'CONFIG'"
115 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ip,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation'
119 - - 'include ::tripleo::profile::base::pacemaker'
120 - 'include ::tripleo::profile::pacemaker::ovn_dbs_bundle'
121 image: *ovn_dbs_config_image
123 - /etc/hosts:/etc/hosts:ro
124 - /etc/localtime:/etc/localtime:ro
125 - /etc/puppet:/tmp/puppet-etc:ro
126 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
127 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
128 - /dev/shm:/dev/shm:rw
130 - name: create persistent directories
135 - /var/log/containers/openvswitch
136 - /var/lib/openvswitch/ovn
138 - name: Stop and disable ovn-northd service
140 service: name=ovn-northd state=stopped enabled=no