buildout.cfg 4.15 KB
Newer Older
1 2 3
[buildout]

extends =
4
  buildout.hash.cfg
5
  ../../component/apache/buildout.cfg
6 7
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
8
  ../../component/openssl/buildout.cfg
9
  ../../component/lxml-python/buildout.cfg
10
  ../../component/pycurl/buildout.cfg
11
  ../../component/python-cryptography/buildout.cfg
12
  ../../stack/logrotate/buildout.cfg
13

14
parts =
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
15
  slapos-cookbook
16
  monitor-eggs
17
  extra-eggs
18
  monitor2-template
19

20 21
[monitor-download-base]
recipe = hexagonit.recipe.download
22
ignore-existing = true
23 24 25 26 27 28 29 30 31 32 33 34 35 36
download-only = true
url = ${:_profile_base_location_}/${:filename}
mode = 0644

[monitor-template-base]
<= monitor-download-base
url = ${:_profile_base_location_}/templates/${:filename}

[monitor-template-script]
<= monitor-download-base
url = ${:_profile_base_location_}/scripts/${:filename}
destination = ${buildout:parts-directory}/monitor-scripts
on-update = true

37
[monitor-eggs]
38
recipe = zc.recipe.egg
39
eggs =
40
  ${lxml-python:egg}
41
  ${pycurl:egg}
42
  ${python-cryptography:egg}
43
  plone.recipe.command
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
44 45
  collective.recipe.template
  cns.recipe.symlink
46
  slapos.toolbox
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
47

48 49 50
# Do no generate any scripts here as all of them are generated by extraeggs
scripts =

51
[extra-eggs]
52
recipe = zc.recipe.egg
53
interpreter = pythonwitheggs
54
eggs =
55
  ${monitor-eggs:eggs}
56
  psutil
57
  PyRSS2Gen
58
  Jinja2
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
59

60

61 62 63
# Monitor templates files
[monitor-httpd-conf]
<= monitor-template-base
64
md5sum = b5f42503799e7e770afce4097d3b75ae
65
filename = monitor-httpd.conf.in
66

67
[monitor-template-wrapper]
68 69
<= monitor-template-base
filename = wrapper.in
70
md5sum = 1695c9a06a2b11ccfe893d7a224e489d
71

72 73 74
[monitor-conf]
<= monitor-template-base
filename = monitor.conf.in
75
md5sum = fc65084dd1c2fe2487b58a003b576f61
76 77 78 79 80 81 82 83 84

[monitor-instance-info]
<= monitor-template-base
filename = instance-info.conf.in
md5sum = 1bdb4e05c6be04f4e5766c64467fbcec

[monitor-httpd-cors]
<= monitor-template-base
filename = httpd-cors.cfg.in
85
md5sum = 683ea85fc054094248baf5752dd089bf
86 87 88 89

[monitor-check-free-disk-space]
<= monitor-template-base
filename = check_free_disk.in
90
md5sum = bab457ac4d139ed31d0b343a7d14d996
91 92
# End templates files

93
# XXX keep compatibility (with software/ipython_notebook/software.cfg )
94 95
[monitor-template]
rendered = ${monitor2-template:rendered}
96
output = ${monitor2-template:rendered}
97 98 99 100 101 102 103 104 105

[monitor2-template]
recipe = slapos.recipe.template:jinja2
filename = template-monitor.cfg
template = ${:_profile_base_location_}/instance-monitor.cfg.jinja2.in
rendered = ${buildout:directory}/template-monitor.cfg
context =
    key apache_location apache:location
    key gzip_location gzip:location
106
    key template_logrotate_base template-logrotate-base:rendered
107 108
    raw monitor_bin ${buildout:directory}/bin/monitor.bootstrap
    raw monitor_collect ${buildout:directory}/bin/monitor.collect
109
    raw monitor_statistic ${buildout:directory}/bin/monitor.statistic
110 111 112
    raw monitor_runpromise ${buildout:directory}/bin/monitor.runpromise
    raw monitor_genstatus ${buildout:directory}/bin/monitor.genstatus
    raw monitor_configwrite ${buildout:directory}/bin/monitor.configwrite
113 114 115 116 117 118 119 120 121 122 123
    raw monitor_conf_template ${monitor-conf:location}/${monitor-conf:filename}
    raw monitor_https_cors ${monitor-httpd-cors:location}/${monitor-httpd-cors:filename}
    raw monitor_instance_info ${monitor-instance-info:location}/${monitor-instance-info:filename}
    raw curl_executable_location ${curl:location}/bin/curl
    raw dash_executable_location ${dash:location}/bin/dash
    raw dcron_executable_location ${dcron:location}/sbin/crond
    raw logrotate_executable_location ${logrotate:location}/usr/sbin/logrotate
    raw monitor_httpd_template ${monitor-httpd-conf:location}/${monitor-httpd-conf:filename}
    raw openssl_executable_location ${openssl:location}/bin/openssl
    raw python_executable ${buildout:executable}
    raw python_with_eggs ${buildout:directory}/bin/${extra-eggs:interpreter}
124
    raw template_wrapper ${monitor-template-wrapper:location}/${monitor-template-wrapper:filename}
125
    raw template_check_disk_space ${monitor-check-free-disk-space:location}/${monitor-check-free-disk-space:filename}
126
    raw bin_directory ${buildout:directory}/bin
127 128 129
depends = 
  ${monitor-eggs:eggs}

130 131 132
[versions]
PyRSS2Gen = 1.1
cns.recipe.symlink = 0.2.3
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
133
pycurl = 7.43.0
Alain Takoudjou's avatar
Alain Takoudjou committed
134
slapos.toolbox = 0.74
135
pyasn1 = 0.3.7
136