~rvb/maas/cluster-own-ui4

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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
[buildout]
parts =
  flake8
  maas
  maas-test
  maascli
  maascli-test
  maas-probe-dhcp
  maastesting-test
  pserv
  pserv-test
  config-test
  repl
  sphinx
  txlongpoll
extensions = buildout-versions
buildout_versions_file = versions.cfg
versions = versions
extends = versions.cfg
offline = false
newest = false

# Since MAAS's main deployment target is Ubuntu, all runtime
# dependencies should come from python packages. However, it's okay
# for development-time dependencies to come from eggs.
include-site-packages = true

prefer-final = true
allow-picked-versions = false

[common]
extra-paths =
  ${buildout:directory}/etc
  ${buildout:directory}/src
  ${buildout:directory}
test-eggs =
  coverage
  fixtures
  mock
  nose
  nose-subunit
  postgresfixture
  python-subunit
  rabbitfixture
  saucelabsfixture
  sst
  testresources
  testscenarios
  testtools
initialization =
  from os import environ
  environ.setdefault("MAAS_CONFIG_DIR", "${buildout:directory}/etc/maas")

[database]
recipe = z3c.recipe.scripts
eggs = postgresfixture
extra-paths = ${common:extra-paths}
interpreter =
entry-points = database=postgresfixture.main:main
scripts = database

[maas]
recipe = zc.recipe.egg
dev-eggs =
  django-debug-toolbar
test-eggs =
  ${common:test-eggs}
  django-nose
eggs =
  ${maas:dev-eggs}
  ${maas:test-eggs}
  djorm-ext-pgarray
  docutils
  crochet
  iscpy
entry-points =
  celeryd.region=celery.bin.worker:main
  maas-region-admin=django.core.management:execute_from_command_line
initialization =
  ${common:initialization}
  environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.development")
scripts =
  celeryd.region
  maas-region-admin
extra-paths =
  ${common:extra-paths}

[maas-test]
recipe = zc.recipe.egg
eggs =
  ${maas:eggs}
entry-points =
  test.maas=django.core.management:execute_from_command_line
initialization =
  ${maas:initialization}
  sys.argv[1:1] = [
      "test", "--noinput", "--exclude=provisioningserver",
      "--exclude=maastesting", "--exclude=maascli"]
scripts = test.maas
extra-paths =
  ${maas:extra-paths}

[maas-probe-dhcp]
recipe = zc.recipe.egg
eggs = 
  ${maas:eggs}
entry-points =
  maas-probe-dhcp=provisioningserver.dhcp.probe:main
scripts =
  maas-probe-dhcp
extra-paths =
  ${maas:extra-paths}
initialization =
  ${common:initialization}

[maascli]
recipe = zc.recipe.egg
eggs =
entry-points =
  maas=maascli:main
extra-paths =
  ${common:extra-paths}
scripts =
  maas

[maascli-test]
recipe = zc.recipe.egg
eggs =
  ${maascli:eggs}
  ${common:test-eggs}
entry-points =
  test.maascli=nose.core:TestProgram
initialization =
  sys.argv[1:1] = ["--where=src/maascli"]
extra-paths = ${maascli:extra-paths}
scripts =
  test.maascli

[maastesting-test]
recipe = zc.recipe.egg
eggs =
  ${common:test-eggs}
entry-points =
  test.maastesting=nose.core:TestProgram
initialization =
  sys.argv[1:1] = ["--where=src/maastesting"]
extra-paths = ${common:extra-paths}
scripts =
  test.maastesting
scripts = test.maastesting
extra-paths =
  ${maas:extra-paths}

[pserv]
recipe = zc.recipe.egg
eggs =
  crochet
entry-points =
  celeryd.cluster=celery.bin.worker:main
  maas-provision=provisioningserver.__main__:main
  twistd.pserv=twisted.scripts.twistd:run
extra-paths =
  ${common:extra-paths}
scripts =
  celeryd.cluster
  maas-provision
  twistd.pserv
initialization =
  ${common:initialization}

[pserv-test]
recipe = zc.recipe.egg
eggs =
  ${pserv:eggs}
  ${common:test-eggs}
entry-points =
  test.pserv=nose.core:TestProgram
initialization =
  ${pserv:initialization}
  sys.argv[1:1] = ["--where=src/provisioningserver"]
extra-paths = ${pserv:extra-paths}
scripts =
  test.pserv

[config-test]
recipe = zc.recipe.egg
eggs =
  ${common:test-eggs}
entry-points =
  test.config=nose.core:TestProgram
initialization =
  ${pserv:initialization}
  sys.argv[1:1] = ["--where=etc/maas/templates/commissioning-user-data"]
extra-paths = ${common:extra-paths}
scripts =
  test.config

[flake8]
recipe = zc.recipe.egg
eggs =
  flake8
entry-points =
  flake8=flake8.run:main

[sphinx]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/docs
build = ${buildout:directory}/docs/_build
extra-paths = ${common:extra-paths}
eggs =
  ${maas:eggs}
  ${pserv:eggs}

# Convenient REPLs with all eggs available.
[repl]
recipe = z3c.recipe.scripts
eggs =
  ${maas:eggs}
  ${pserv:eggs}
  ${common:test-eggs}
extra-paths = ${common:extra-paths}
interpreter = py
scripts = ipy
entry-points =
  ipy=IPython.frontend.terminal.ipapp:launch_new_instance

[txlongpoll]
recipe = z3c.recipe.scripts
eggs =
extra-paths = /buildout/creates/an/invalid/list/literal/without/this
entry-points = twistd.txlongpoll=twisted.scripts.twistd:run
scripts = twistd.txlongpoll