Bring in baremetal support
[fuel.git] / mcp / patches / reclass-system-salt-model / 0001-Bring-in-opendaylight-support.patch
1 From: Michael Polenchuk <mpolenchuk@mirantis.com>
2 Date: Thu, 29 Jun 2017 12:22:42 +0400
3 Subject: [PATCH] Bring in opendaylight support
4
5 Change-Id: I3efec9a8b586a6c75b1c1635ad2a7024d73d9ad2
6 ---
7  neutron/control/opendaylight/cluster.yml              | 19 +++++++++++++++++++
8  neutron/control/opendaylight/single.yml               | 16 ++++++++++++++++
9  neutron/gateway/opendaylight/single.yml               |  8 ++++++++
10  opendaylight/server/single.yml                        |  2 ++
11  .../storage/system/opendaylight_control_single.yml    | 13 +++++++++++++
12  5 files changed, 58 insertions(+)
13  create mode 100644 neutron/control/opendaylight/cluster.yml
14  create mode 100644 neutron/control/opendaylight/single.yml
15  create mode 100644 neutron/gateway/opendaylight/single.yml
16  create mode 100644 opendaylight/server/single.yml
17  create mode 100644 reclass/storage/system/opendaylight_control_single.yml
18
19 diff --git a/neutron/control/opendaylight/cluster.yml b/neutron/control/opendaylight/cluster.yml
20 new file mode 100644
21 index 0000000..4133650
22 --- /dev/null
23 +++ b/neutron/control/opendaylight/cluster.yml
24 @@ -0,0 +1,19 @@
25 +classes:
26 +- service.keepalived.cluster.single
27 +- service.haproxy.proxy.single
28 +- service.neutron.control.cluster
29 +- system.haproxy.proxy.listen.openstack.neutron
30 +- system.neutron.control.openvswitch.cluster
31 +parameters:
32 +  neutron:
33 +    server:
34 +      backend:
35 +        engine: opendaylight
36 +        host: ${_param:opendaylight_service_host}
37 +        rest_api_port: 8282
38 +        user: admin
39 +        password: admin
40 +        ovsdb_connection: tcp:127.0.0.1:6639
41 +        mechanism:
42 +          ovs:
43 +            driver: opendaylight_v2
44 diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
45 new file mode 100644
46 index 0000000..19af585
47 --- /dev/null
48 +++ b/neutron/control/opendaylight/single.yml
49 @@ -0,0 +1,16 @@
50 +classes:
51 +- service.neutron.control.single
52 +- system.neutron.control.openvswitch.single
53 +parameters:
54 +  neutron:
55 +    server:
56 +      backend:
57 +        engine: opendaylight
58 +        host: ${_param:opendaylight_service_host}
59 +        rest_api_port: 8282
60 +        user: admin
61 +        password: admin
62 +        ovsdb_connection: tcp:127.0.0.1:6639
63 +        mechanism:
64 +          ovs:
65 +            driver: opendaylight_v2
66 diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
67 new file mode 100644
68 index 0000000..29c8d95
69 --- /dev/null
70 +++ b/neutron/gateway/opendaylight/single.yml
71 @@ -0,0 +1,8 @@
72 +classes:
73 +- service.neutron.gateway.single
74 +parameters:
75 +  neutron:
76 +    gateway:
77 +      backend:
78 +        engine: opendaylight
79 +        ovsdb_connection: tcp:127.0.0.1:6639
80 diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
81 new file mode 100644
82 index 0000000..3d11872
83 --- /dev/null
84 +++ b/opendaylight/server/single.yml
85 @@ -0,0 +1,2 @@
86 +classes:
87 +- service.opendaylight.server.single
88 diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
89 new file mode 100644
90 index 0000000..ad809f5
91 --- /dev/null
92 +++ b/reclass/storage/system/opendaylight_control_single.yml
93 @@ -0,0 +1,13 @@
94 +parameters:
95 +  _param:
96 +    opendaylight_control_hostname: odl01
97 +  reclass:
98 +    storage:
99 +      node:
100 +        opendaylight_control_node01:
101 +          name: ${_param:opendaylight_control_hostname}
102 +          domain: ${_param:cluster_domain}
103 +          params:
104 +            salt_master_host: ${_param:reclass_config_master}
105 +            linux_system_codename: ${_param:linux_system_codename}
106 +            single_address: ${_param:opendaylight_service_host}