Apply reclass patches before salt master init
[fuel.git] / mcp / patches / 0001-opendaylight-reclass-system.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 diff --git a/neutron/control/opendaylight/cluster.yml b/neutron/control/opendaylight/cluster.yml
8 new file mode 100644
9 index 0000000..4133650
10 --- /dev/null
11 +++ b/neutron/control/opendaylight/cluster.yml
12 @@ -0,0 +1,19 @@
13 +classes:
14 +- service.keepalived.cluster.single
15 +- service.haproxy.proxy.single
16 +- service.neutron.control.cluster
17 +- system.haproxy.proxy.listen.openstack.neutron
18 +- system.neutron.control.openvswitch.cluster
19 +parameters:
20 +  neutron:
21 +    server:
22 +      backend:
23 +        engine: opendaylight
24 +        host: ${_param:opendaylight_service_host}
25 +        rest_api_port: 8282
26 +        user: admin
27 +        password: admin
28 +        ovsdb_connection: tcp:127.0.0.1:6639
29 +        mechanism:
30 +          ovs:
31 +            driver: opendaylight_v2
32 diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
33 new file mode 100644
34 index 0000000..19af585
35 --- /dev/null
36 +++ b/neutron/control/opendaylight/single.yml
37 @@ -0,0 +1,16 @@
38 +classes:
39 +- service.neutron.control.single
40 +- system.neutron.control.openvswitch.single
41 +parameters:
42 +  neutron:
43 +    server:
44 +      backend:
45 +        engine: opendaylight
46 +        host: ${_param:opendaylight_service_host}
47 +        rest_api_port: 8282
48 +        user: admin
49 +        password: admin
50 +        ovsdb_connection: tcp:127.0.0.1:6639
51 +        mechanism:
52 +          ovs:
53 +            driver: opendaylight_v2
54 diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
55 new file mode 100644
56 index 0000000..29c8d95
57 --- /dev/null
58 +++ b/neutron/gateway/opendaylight/single.yml
59 @@ -0,0 +1,8 @@
60 +classes:
61 +- service.neutron.gateway.single
62 +parameters:
63 +  neutron:
64 +    gateway:
65 +      backend:
66 +        engine: opendaylight
67 +        ovsdb_connection: tcp:127.0.0.1:6639
68 diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
69 new file mode 100644
70 index 0000000..3d11872
71 --- /dev/null
72 +++ b/opendaylight/server/single.yml
73 @@ -0,0 +1,2 @@
74 +classes:
75 +- service.opendaylight.server.single
76 diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
77 new file mode 100644
78 index 0000000..890ff59
79 --- /dev/null
80 +++ b/reclass/storage/system/opendaylight_control_single.yml
81 @@ -0,0 +1,15 @@
82 +parameters:
83 +  _param:
84 +    opendaylight_control_hostname: odl01
85 +  reclass:
86 +    storage:
87 +      node:
88 +        opendaylight_control_node01:
89 +          name: ${_param:opendaylight_control_hostname}
90 +          domain: ${_param:cluster_domain}
91 +          classes:
92 +          - cluster.${_param:cluster_name}.opendaylight.control
93 +          params:
94 +            salt_master_host: ${_param:reclass_config_master}
95 +            linux_system_codename: ${_param:linux_system_codename}
96 +            single_address: ${_param:opendaylight_service_host}