software.cfg 3.14 KB
Newer Older
1
[buildout]
2 3 4 5 6 7 8 9 10

extends =
  ../../component/6tunnel/buildout.cfg
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/qemu-kvm/buildout.cfg
  ../../component/noVNC/buildout.cfg
  ../../component/openssl/buildout.cfg
  ../../component/netcat/buildout.cfg
11
  ../../component/nginx/buildout.cfg
12
  ../../component/pycurl/buildout.cfg
13
  ../../component/gzip/buildout.cfg
14 15
  ../../stack/slapos.cfg
  ../../stack/resilient/buildout.cfg
16
  buildout.hash.cfg
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

# stacks are listed from most generic to most specific,
# to avoid versioning issues
common-parts =
  template

# XXX: we have to manually add this for resilience
  pbs-recipe-egg


parts = ${:common-parts}

#XXX-Cedric : Currently, one can only access to KVM using noVNC.
#             Ideally one should be able to access KVM by using either NoVNC or VNC.
#             Problem is : no native crypto support in web browsers. So we have to disable ssl
#             In qemu builtin vnc server, and make it available only for localhost
#             so that only novnc can listen to it.

35
[python-with-eggs]
36
recipe = zc.recipe.egg
37
interpreter = ${:_buildout_section_name_}
38
eggs =
39
  ${slapos-toolbox:eggs}
40
  ${python-cffi:egg}
41
  ${slapos-cookbook:eggs}
42
  erp5.util
43 44 45
# BBB: eggs used as recipe should be kept otherwise sections depending
# on it can't be uninstalled
  collective.recipe.shelloutput
46 47 48
# Only generate the interpreter script to avoid conflicts with scripts
# for eggs that are also generated by another section, like slapos.toolbox
scripts = ${:interpreter}
49 50

# Create all templates that will be used to deploy instances
51
[download-base]
52
recipe = slapos.recipe.build:download
53 54
url = ${:_profile_base_location_}/${:filename}

55
[template-base]
56
recipe = slapos.recipe.template
57
url = ${:_profile_base_location_}/${:filename}
58 59 60 61 62 63 64

[template-base-python]
<= template-base
output = ${buildout:parts-directory}/${:_buildout_section_name_}/${:_buildout_section_name_}.py

[template]
<= template-base
65 66
output = ${buildout:directory}/template.cfg

67
[template-kvm]
68
<= download-base
69 70

[template-kvm-cluster]
71
<= download-base
72 73

[template-kvm-resilient]
74
<= download-base
75 76

[template-kvm-import]
77
<= download-base
78 79

[template-kvm-import-script]
80
<= download-base
81 82

[template-kvm-export]
83
<= download-base
84 85

[template-kvm-export-script]
86
<= download-base
87 88

[template-nbd]
89
<= download-base
90

91 92 93
[template-nginx]
<= download-base

94
[template-ansible-promise]
95
<= download-base
96 97

[template-kvm-run]
98
<= download-base
99 100

[template-kvm-controller]
101
<= download-base
102 103

[template-apache-conf]
104
<= download-base
105 106

[template-content]
107
<= download-base
108 109

[template-qemu-ready]
110
<= download-base
111

112 113
[template-httpd]
recipe = slapos.recipe.template:jinja2
114 115
url = ${:_profile_base_location_}/instance-kvm-http.cfg.in
output = ${buildout:parts-directory}/${:_buildout_section_name_}/instance-kvm-http.cfg
116 117 118
context =
    key apache_location apache:location
    raw openssl_executable_location ${openssl:location}/bin/openssl
119
    key template_apache_conf template-apache-conf:target
Łukasz Nowak's avatar
Łukasz Nowak committed
120

121
[image-download-controller]
122
<= template-base-python
123 124

[image-download-config-creator]
125
<= template-base-python
126

127
[whitelist-firewall-download-controller]
128
<= template-base-python
129

130 131
[whitelist-domains-default]
<= download-base