Add license headers where missing
[fuel.git] / mcp / patches / reclass-system-salt-model / 0001-Bring-in-opendaylight-support.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Michael Polenchuk <mpolenchuk@mirantis.com>
10 Date: Thu, 29 Jun 2017 12:22:42 +0400
11 Subject: [PATCH] Bring in opendaylight support
12
13 Change-Id: I3efec9a8b586a6c75b1c1635ad2a7024d73d9ad2
14 ---
15  neutron/control/opendaylight/cluster.yml               | 18 ++++++++++++++++++
16  neutron/control/opendaylight/single.yml                | 16 ++++++++++++++++
17  neutron/gateway/opendaylight/single.yml                |  8 ++++++++
18  opendaylight/server/single.yml                         |  2 ++
19  reclass/storage/system/opendaylight_control_single.yml | 13 +++++++++++++
20  5 files changed, 57 insertions(+)
21  create mode 100644 neutron/control/opendaylight/cluster.yml
22  create mode 100644 neutron/control/opendaylight/single.yml
23  create mode 100644 neutron/gateway/opendaylight/single.yml
24  create mode 100644 opendaylight/server/single.yml
25  create mode 100644 reclass/storage/system/opendaylight_control_single.yml
26
27 diff --git a/neutron/control/opendaylight/cluster.yml b/neutron/control/opendaylight/cluster.yml
28 new file mode 100644
29 index 0000000..81dd5f9
30 --- /dev/null
31 +++ b/neutron/control/opendaylight/cluster.yml
32 @@ -0,0 +1,18 @@
33 +classes:
34 +- service.keepalived.cluster.single
35 +- service.haproxy.proxy.single
36 +- service.neutron.control.cluster
37 +- system.neutron.control.openvswitch.cluster
38 +parameters:
39 +  neutron:
40 +    server:
41 +      backend:
42 +        engine: opendaylight
43 +        host: ${_param:opendaylight_service_host}
44 +        rest_api_port: 8282
45 +        user: admin
46 +        password: admin
47 +        ovsdb_connection: tcp:127.0.0.1:6639
48 +        mechanism:
49 +          ovs:
50 +            driver: opendaylight_v2
51 diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
52 new file mode 100644
53 index 0000000..19af585
54 --- /dev/null
55 +++ b/neutron/control/opendaylight/single.yml
56 @@ -0,0 +1,16 @@
57 +classes:
58 +- service.neutron.control.single
59 +- system.neutron.control.openvswitch.single
60 +parameters:
61 +  neutron:
62 +    server:
63 +      backend:
64 +        engine: opendaylight
65 +        host: ${_param:opendaylight_service_host}
66 +        rest_api_port: 8282
67 +        user: admin
68 +        password: admin
69 +        ovsdb_connection: tcp:127.0.0.1:6639
70 +        mechanism:
71 +          ovs:
72 +            driver: opendaylight_v2
73 diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
74 new file mode 100644
75 index 0000000..29c8d95
76 --- /dev/null
77 +++ b/neutron/gateway/opendaylight/single.yml
78 @@ -0,0 +1,8 @@
79 +classes:
80 +- service.neutron.gateway.single
81 +parameters:
82 +  neutron:
83 +    gateway:
84 +      backend:
85 +        engine: opendaylight
86 +        ovsdb_connection: tcp:127.0.0.1:6639
87 diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
88 new file mode 100644
89 index 0000000..3d11872
90 --- /dev/null
91 +++ b/opendaylight/server/single.yml
92 @@ -0,0 +1,2 @@
93 +classes:
94 +- service.opendaylight.server.single
95 diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
96 new file mode 100644
97 index 0000000..ad809f5
98 --- /dev/null
99 +++ b/reclass/storage/system/opendaylight_control_single.yml
100 @@ -0,0 +1,13 @@
101 +parameters:
102 +  _param:
103 +    opendaylight_control_hostname: odl01
104 +  reclass:
105 +    storage:
106 +      node:
107 +        opendaylight_control_node01:
108 +          name: ${_param:opendaylight_control_hostname}
109 +          domain: ${_param:cluster_domain}
110 +          params:
111 +            salt_master_host: ${_param:reclass_config_master}
112 +            linux_system_codename: ${_param:linux_system_codename}
113 +            single_address: ${_param:opendaylight_service_host}