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

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

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

21 22
[monitor-download-base]
recipe = hexagonit.recipe.download
23
ignore-existing = true
24 25 26 27 28 29 30 31 32 33 34 35 36 37
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

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

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

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

61

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

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

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

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

[monitor-httpd-cors]
<= monitor-template-base
filename = httpd-cors.cfg.in
86
md5sum = 683ea85fc054094248baf5752dd089bf
87 88
# End templates files

89
# XXX keep compatibility (with software/ipython_notebook/software.cfg )
90 91
[monitor-template]
rendered = ${monitor2-template:rendered}
92
output = ${monitor2-template:rendered}
93 94 95 96 97 98

[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
99
md5sum = 04b4555615c48fb615dd452294c185e0
100 101 102
context =
    key apache_location apache:location
    key gzip_location gzip:location
103 104 105 106 107 108
    raw monitor_bin ${buildout:directory}/bin/monitor.bootstrap
    raw monitor_collect ${buildout:directory}/bin/monitor.collect
    raw monitor_runpromise ${buildout:directory}/bin/monitor.runpromise
    raw monitor_genstatus ${buildout:directory}/bin/monitor.genstatus
    raw monitor_genrss ${buildout:directory}/bin/monitor.genrss
    raw monitor_configwrite ${buildout:directory}/bin/monitor.configwrite
109 110 111 112 113 114 115 116 117 118 119
    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}
120 121 122 123
    raw template_wrapper ${monitor-template-wrapper:location}/${monitor-template-wrapper:filename}
depends = 
  ${monitor-eggs:eggs}

124 125 126
[versions]
PyRSS2Gen = 1.1
cns.recipe.symlink = 0.2.3
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
127
pycurl = 7.43.0
Alain Takoudjou's avatar
Alain Takoudjou committed
128
slapos.toolbox = 0.62
129