Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / ovn-dbs.yaml
1 heat_template_version: pike
2
3 description: >
4   OVN databases configured with puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   OVNNorthboundServerPort:
34     description: Port of the OVN Northbound DB server
35     type: number
36     default: 6641
37   OVNSouthboundServerPort:
38     description: Port of the OVN Southbound DB server
39     type: number
40     default: 6642
41
42 outputs:
43   role_data:
44     description: Role data for the OVN northd service
45     value:
46       service_name: ovn_dbs
47       config_settings:
48           ovn::northbound::port: {get_param: OVNNorthboundServerPort}
49           ovn::southbound::port: {get_param: OVNSouthboundServerPort}
50           ovn::northd::dbs_listen_ip: {get_param: [ServiceNetMap, OvnDbsNetwork]}
51           tripleo::haproxy::ovn_dbs_manage_lb: true
52           tripleo.ovn_dbs.firewall_rules:
53             '121 OVN DB server ports':
54               proto: 'tcp'
55               dport:
56                 - {get_param: OVNNorthboundServerPort}
57                 - {get_param: OVNSouthboundServerPort}
58       step_config: |
59         include ::tripleo::profile::base::neutron::ovn_northd
60       upgrade_tasks:
61         - name: Check if ovn_northd is deployed
62           command: systemctl is-enabled ovn-northd
63           tags: common
64           ignore_errors: True
65           register: ovn_northd_enabled
66         - name: "PreUpgrade step0,validation: Check service ovn-northd is running"
67           shell: /usr/bin/systemctl show 'ovn-northd' --property ActiveState | grep '\bactive\b'
68           when: ovn_northd_enabled.rc == 0
69           tags: step0,validation
70         - name: Stop ovn-northd service
71           tags: step1
72           when: ovn_northd_enabled.rc == 0
73           service: name=ovn-northd state=stopped