summaryrefslogtreecommitdiffstats
path: root/mcp/patches/reclass-system-salt-model/0001-Bring-in-opendaylight-support.patch
blob: 8d47cc46283cf208b753cdd6aa9ede882a2ceffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Copyright (c) 2018 Mirantis Inc., Enea AB and others.
:
: All rights reserved. This program and the accompanying materials
: are made available under the terms of the Apache License, Version 2.0
: which accompanies this distribution, and is available at
: http://www.apache.org/licenses/LICENSE-2.0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
From: Michael Polenchuk <mpolenchuk@mirantis.com>
Date: Thu, 29 Jun 2017 12:22:42 +0400
Subject: [PATCH] Bring in opendaylight support

Change-Id: I3efec9a8b586a6c75b1c1635ad2a7024d73d9ad2
---
 neutron/control/opendaylight/cluster.yml               | 17 +++++++++++++++++
 neutron/control/opendaylight/single.yml                | 15 +++++++++++++++
 neutron/gateway/opendaylight/single.yml                |  7 +++++++
 opendaylight/server/single.yml                         |  2 ++
 reclass/storage/system/opendaylight_control_single.yml | 13 +++++++++++++
 5 files changed, 54 insertions(+)
 create mode 100644 neutron/control/opendaylight/cluster.yml
 create mode 100644 neutron/control/opendaylight/single.yml
 create mode 100644 neutron/gateway/opendaylight/single.yml
 create mode 100644 opendaylight/server/single.yml
 create mode 100644 reclass/storage/system/opendaylight_control_single.yml

diff --git a/neutron/control/opendaylight/cluster.yml b/neutron/control/opendaylight/cluster.yml
new file mode 100644
index 0000000..a32e7ab
--- /dev/null
+++ b/neutron/control/opendaylight/cluster.yml
@@ -0,0 +1,17 @@
+classes:
+- service.keepalived.cluster.single
+- service.haproxy.proxy.single
+- service.neutron.control.cluster
+- system.neutron.control.openvswitch.cluster
+parameters:
+  neutron:
+    server:
+      backend:
+        host: ${_param:opendaylight_service_host}
+        rest_api_port: 8282
+        user: admin
+        password: admin
+        ovsdb_connection: tcp:127.0.0.1:6639
+        mechanism:
+          ovs:
+            driver: opendaylight_v2
diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
new file mode 100644
index 0000000..053f14d
--- /dev/null
+++ b/neutron/control/opendaylight/single.yml
@@ -0,0 +1,15 @@
+classes:
+- service.neutron.control.single
+- system.neutron.control.openvswitch.single
+parameters:
+  neutron:
+    server:
+      backend:
+        host: ${_param:opendaylight_service_host}
+        rest_api_port: 8282
+        user: admin
+        password: admin
+        ovsdb_connection: tcp:127.0.0.1:6639
+        mechanism:
+          ovs:
+            driver: opendaylight_v2
diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
new file mode 100644
index 0000000..2169001
--- /dev/null
+++ b/neutron/gateway/opendaylight/single.yml
@@ -0,0 +1,7 @@
+classes:
+- service.neutron.gateway.single
+parameters:
+  neutron:
+    gateway:
+      backend:
+        ovsdb_connection: tcp:127.0.0.1:6639
diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
new file mode 100644
index 0000000..3d11872
--- /dev/null
+++ b/opendaylight/server/single.yml
@@ -0,0 +1,2 @@
+classes:
+- service.opendaylight.server.single
diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
new file mode 100644
index 0000000..ad809f5
--- /dev/null
+++ b/reclass/storage/system/opendaylight_control_single.yml
@@ -0,0 +1,13 @@
+parameters:
+  _param:
+    opendaylight_control_hostname: odl01
+  reclass:
+    storage:
+      node:
+        opendaylight_control_node01:
+          name: ${_param:opendaylight_control_hostname}
+          domain: ${_param:cluster_domain}
+          params:
+            salt_master_host: ${_param:reclass_config_master}
+            linux_system_codename: ${_param:linux_system_codename}
+            single_address: ${_param:opendaylight_service_host}