Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / ovn-controller.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack OVN Controller agent
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   DefaultPasswords:
13     default: {}
14     type: json
15   RoleName:
16     default: ''
17     description: Role name on which the service is applied
18     type: string
19   RoleParameters:
20     default: {}
21     description: Parameters specific to the role
22     type: json
23   ServiceData:
24     default: {}
25     description: Dictionary packing service data
26     type: json
27   ServiceNetMap:
28     default: {}
29     description: Mapping of service_name -> network name. Typically set
30                  via parameter_defaults in the resource registry.  This
31                  mapping overrides those in ServiceNetMapDefaults.
32     type: json
33   OVNSouthboundServerPort:
34     description: Port of the Southbound DB Server
35     type: number
36     default: 6642
37   OVNTunnelEncapType:
38     description: Tunnel encapsulation type
39     type: string
40     default: geneve
41   NeutronBridgeMappings:
42     description: >
43       The OVS logical->physical bridge mappings to use. See the Neutron
44       documentation for details. Defaults to mapping br-ex - the external
45       bridge on hosts - to a physical name 'datacentre' which can be used
46       to create provider networks (and we use this for the default floating
47       network) - if changing this either use different post-install network
48       scripts or be sure to keep 'datacentre' as a mapping network name.
49     type: comma_delimited_list
50     default: "datacentre:br-ex"
51
52
53 outputs:
54   role_data:
55     description: Role data for the OVN Controller agent
56     value:
57       service_name: ovn_controller
58       config_settings:
59         ovn::southbound::port: {get_param: OVNSouthboundServerPort}
60         ovn::controller::ovn_encap_type: {get_param: OVNTunnelEncapType}
61         ovn::controller::ovn_encap_ip: {get_param: [ServiceNetMap, NeutronApiNetwork]}
62         ovn::controller::ovn_bridge_mappings: {get_param: NeutronBridgeMappings}
63         nova::compute::force_config_drive: true
64         tripleo.ovn_controller.firewall_rules:
65           '118 neutron vxlan networks':
66                 proto: 'udp'
67                 dport: 4789
68           '119 neutron geneve networks':
69             proto: 'udp'
70             dport: 6081
71       step_config: |
72         include ::tripleo::profile::base::neutron::agents::ovn
73       upgrade_tasks:
74         - name: Check if ovn_controller is deployed
75           command: systemctl is-enabled ovn-controller
76           tags: common
77           ignore_errors: True
78           register: ovn_controller_enabled
79         - name: "PreUpgrade step0,validation: Check service ovn-controller is running"
80           shell: /usr/bin/systemctl show 'ovn-controller' --property ActiveState | grep '\bactive\b'
81           when: ovn_controller_enabled.rc == 0
82           tags: step0,validation
83         - name: Stop ovn-controller service
84           tags: step1
85           when: ovn_controller_enabled.rc == 0
86           service: name=ovn-controller state=stopped