Merge "Fix bogus parameters in get_param"
[apex-tripleo-heat-templates.git] / puppet / services / opendaylight-ovs.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenDaylight OVS Configuration.
5
6 parameters:
7   OpenDaylightPort:
8     default: 8081
9     description: Set opendaylight service port
10     type: number
11   OpenDaylightUsername:
12     default: 'admin'
13     description: The username for the opendaylight server.
14     type: string
15   OpenDaylightPassword:
16     default: 'admin'
17     type: string
18     description: The password for the opendaylight server.
19     hidden: true
20   OpenDaylightConnectionProtocol:
21     description: L7 protocol used for REST access
22     type: string
23     default: 'http'
24   OpenDaylightCheckURL:
25     description: URL postfix to verify ODL has finished starting up
26     type: string
27     default: 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
28   OpenDaylightApiVirtualIP:
29     type: string
30     default: ''
31   OpenDaylightProviderMappings:
32     description: Mappings between logical networks and physical interfaces.
33                  Required for VLAN deployments.  For example physnet1 -> eth1.
34     type: comma_delimited_list
35     default: "datacentre:br-ex"
36   EndpointMap:
37     default: {}
38     description: Mapping of service endpoint -> protocol. Typically set
39                  via parameter_defaults in the resource registry.
40     type: json
41   ServiceNetMap:
42     default: {}
43     description: Mapping of service_name -> network name. Typically set
44                  via parameter_defaults in the resource registry.  This
45                  mapping overrides those in ServiceNetMapDefaults.
46     type: json
47   DefaultPasswords:
48     default: {}
49     type: json
50
51 outputs:
52   role_data:
53     description: Role data for the OpenDaylight service.
54     value:
55       service_name: opendaylight_ovs
56       config_settings:
57         opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
58         opendaylight::username: {get_param: OpenDaylightUsername}
59         opendaylight::password: {get_param: OpenDaylightPassword}
60         opendaylight_check_url: {get_param: OpenDaylightCheckURL}
61         opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
62         neutron::agents::ml2::ovs::local_ip: {get_param: [ServiceNetMap, NeutronTenantNetwork]}
63         neutron::plugins::ovs::opendaylight::provider_mappings:
64           str_replace:
65             template: MAPPINGS
66             params:
67               MAPPINGS: {get_param: OpenDaylightProviderMappings}
68         tripleo.opendaylight_ovs.firewall_rules:
69           '118 neutron vxlan networks':
70              proto: 'udp'
71              dport: 4789
72           '136 neutron gre networks':
73              proto: 'gre'
74       step_config: |
75         include tripleo::profile::base::neutron::plugins::ovs::opendaylight
76       upgrade_tasks:
77         - name: Check if openvswitch is deployed
78           command: systemctl is-enabled openvswitch
79           tags: common
80           ignore_errors: True
81           register: openvswitch_enabled
82         - name: "PreUpgrade step0,validation: Check service openvswitch is running"
83           shell: /usr/bin/systemctl show 'openvswitch' --property ActiveState | grep '\bactive\b'
84           when: openvswitch_enabled.rc == 0
85           tags: step0,validation
86         - name: Stop openvswitch service
87           tags: step1
88           when: openvswitch_enabled.rc == 0
89           service: name=openvswitch state=stopped