This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
motherbrain.rb
194 lines (175 loc) · 4.51 KB
/
motherbrain.rb
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# This is an example motherbrain plugin.
#
# To see a list of all commands this plugin provides, run:
#
# mb eucalyptus help
#
# For documentation, visit https://github.com/RiotGames/motherbrain
# When bootstrapping a cluster for the first time, you'll need to specify which
# components and groups you want to bootstrap.
stack_order do
bootstrap 'ceph::all-in-one'
bootstrap 'ceph::setup-mons'
bootstrap 'ceph::setup-osds'
bootstrap 'ceph::setup-admin'
bootstrap 'ceph::setup-mds'
bootstrap 'riakcs-cluster::head'
bootstrap 'riakcs-cluster::node'
bootstrap 'riakcs-cluster::commit'
bootstrap 'riakcs-cluster::nuke'
bootstrap 'cloud::full'
bootstrap 'cloud::default'
bootstrap 'cloud::frontend'
bootstrap 'cluster::default'
bootstrap 'cluster::cluster-controller'
bootstrap 'cluster::storage-controller'
bootstrap 'cloud::user-facing'
bootstrap 'cloud::walrus'
bootstrap 'cloud::user-console'
bootstrap 'node::default'
bootstrap 'cloud::configure'
bootstrap 'midokura::midolman'
bootstrap 'midokura::all-in-one'
bootstrap 'midokura::midokura-cp'
bootstrap 'midokura::midokura-api'
bootstrap 'midokura::zookeeper'
bootstrap 'cloud::create-first-resources'
bootstrap 'nuke::default'
end
component 'cloud' do
description "Eucalyptus Cloud Controller"
versioned_with 'eucalyptus.version'
group 'default' do
recipe 'eucalyptus::cloud-controller'
recipe 'eucalyptus::register-components'
end
group 'frontend' do
recipe 'eucalyptus::cloud-controller'
recipe 'eucalyptus::register-components'
recipe 'eucalyptus::walrus'
recipe 'eucalyptus::user-console'
end
group 'walrus' do
recipe 'eucalyptus::walrus'
end
group 'user-facing' do
recipe 'eucalyptus::user-facing'
end
group 'user-console' do
recipe 'eucalyptus::user-console'
end
group 'full' do
recipe 'eucalyptus::cloud-controller'
recipe 'eucalyptus::user-console'
recipe 'eucalyptus::register-components'
recipe 'eucalyptus::walrus'
recipe 'eucalyptus::cluster-controller'
recipe 'eucalyptus::storage-controller'
end
group 'configure' do
recipe 'eucalyptus::configure'
end
group 'create-first-resources' do
recipe 'eucalyptus::create-first-resources'
end
end
component 'cluster' do
description "Eucalyptus Cluster Controller"
versioned_with 'eucalyptus.version'
group 'default' do
recipe 'eucalyptus::cluster-controller'
recipe 'eucalyptus::storage-controller'
end
group 'cluster-controller' do
recipe 'eucalyptus::cluster-controller'
end
group 'storage-controller' do
recipe 'eucalyptus::storage-controller'
end
end
component 'node' do
description "Node Controller"
versioned
group 'default' do
recipe 'eucalyptus::node-controller'
end
end
component 'nuke' do
description "The nuclear option"
versioned
group 'default' do
recipe 'eucalyptus::nuke'
end
end
component 'ceph' do
description "ceph cookbook application"
group 'all-in-one' do
recipe 'ceph-deploy::default'
recipe 'ceph-deploy::mons'
recipe 'ceph-deploy::osds'
recipe 'ceph-deploy::admin'
recipe 'ceph-deploy::mds'
end
group 'setup-osds' do
recipe 'ceph-deploy::osds'
end
group 'setup-mons' do
recipe 'ceph-deploy::default'
recipe 'ceph-deploy::mons'
end
group 'setup-admin' do
recipe 'ceph-deploy::admin'
end
group 'setup-mds' do
recipe 'ceph-deploy::mds'
end
end
component 'riakcs-cluster' do
description "Riakcs-cluster application"
group 'head' do
recipe 'riak-cs::package'
recipe 'riak'
recipe 'sysctl'
recipe 'riak-cs'
recipe 'riak-cs::stanchion'
recipe 'riak-cs::control'
recipe 'riak-cs-create-admin-user'
recipe 'riakcs-cluster::credentials'
recipe 'riakcs-cluster::sync'
end
group 'commit' do
recipe 'riakcs-cluster::plancommit'
recipe 'riakcs-cluster::mergecreds'
end
group 'node' do
recipe 'riakcs-cluster::sync'
recipe 'riak-cs::package'
recipe 'riak'
recipe 'sysctl'
recipe 'riak-cs'
recipe 'riakcs-cluster::join'
recipe 'riakcs-cluster::mergecreds'
end
group 'nuke' do
recipe 'riakcs-cluster::nuke'
end
end
component 'midokura' do
description "Midonet installation"
versioned
group 'all-in-one' do
recipe 'midokura::default'
end
group 'midolman' do
recipe 'midokura::midolman'
end
group 'midokura-api' do
recipe 'midokura::midokura-api'
end
group 'midokura-cp' do
recipe 'midokura::midokura-cp'
end
group 'zookeeper' do
recipe 'midokura::zookeeper'
end
end