Merge "[docs] Add MCP user guide"
[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               | 17 +++++++++++++++++
16  neutron/control/opendaylight/single.yml                | 15 +++++++++++++++
17  neutron/gateway/opendaylight/single.yml                |  7 +++++++
18  opendaylight/server/single.yml                         |  2 ++
19  reclass/storage/system/opendaylight_control_single.yml | 13 +++++++++++++
20  5 files changed, 54 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..a32e7ab
30 --- /dev/null
31 +++ b/neutron/control/opendaylight/cluster.yml
32 @@ -0,0 +1,17 @@
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 +        host: ${_param:opendaylight_service_host}
43 +        rest_api_port: 8282
44 +        user: admin
45 +        password: admin
46 +        ovsdb_connection: tcp:127.0.0.1:6639
47 +        mechanism:
48 +          ovs:
49 +            driver: opendaylight_v2
50 diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
51 new file mode 100644
52 index 0000000..053f14d
53 --- /dev/null
54 +++ b/neutron/control/opendaylight/single.yml
55 @@ -0,0 +1,15 @@
56 +classes:
57 +- service.neutron.control.single
58 +- system.neutron.control.openvswitch.single
59 +parameters:
60 +  neutron:
61 +    server:
62 +      backend:
63 +        host: ${_param:opendaylight_service_host}
64 +        rest_api_port: 8282
65 +        user: admin
66 +        password: admin
67 +        ovsdb_connection: tcp:127.0.0.1:6639
68 +        mechanism:
69 +          ovs:
70 +            driver: opendaylight_v2
71 diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
72 new file mode 100644
73 index 0000000..2169001
74 --- /dev/null
75 +++ b/neutron/gateway/opendaylight/single.yml
76 @@ -0,0 +1,7 @@
77 +classes:
78 +- service.neutron.gateway.single
79 +parameters:
80 +  neutron:
81 +    gateway:
82 +      backend:
83 +        ovsdb_connection: tcp:127.0.0.1:6639
84 diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
85 new file mode 100644
86 index 0000000..3d11872
87 --- /dev/null
88 +++ b/opendaylight/server/single.yml
89 @@ -0,0 +1,2 @@
90 +classes:
91 +- service.opendaylight.server.single
92 diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
93 new file mode 100644
94 index 0000000..ad809f5
95 --- /dev/null
96 +++ b/reclass/storage/system/opendaylight_control_single.yml
97 @@ -0,0 +1,13 @@
98 +parameters:
99 +  _param:
100 +    opendaylight_control_hostname: odl01
101 +  reclass:
102 +    storage:
103 +      node:
104 +        opendaylight_control_node01:
105 +          name: ${_param:opendaylight_control_hostname}
106 +          domain: ${_param:cluster_domain}
107 +          params:
108 +            salt_master_host: ${_param:reclass_config_master}
109 +            linux_system_codename: ${_param:linux_system_codename}
110 +            single_address: ${_param:opendaylight_service_host}