buildout.cfg 5.8 KB
Newer Older
1
[buildout]
2 3 4 5
# XXX THIS STACK IS A KIND OF FORK OF `stack/monitor`. THIS ONE WAS
#     CREATED AS A REDESIGNED ONE TO REMOVE UNWANTED FEATURES AND
#     TO GO FURTHER TO THE GOOD DESIGN DIRECTION. SEE THE README FOR
#     MORE INFORMATION.
6 7

extends =
8
  ../../component/apache/buildout.cfg
9 10
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
11
  ../../component/dcron/buildout.cfg
12
  ../../component/openssl/buildout.cfg
13

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

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

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

[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

[eggs]
43
recipe = zc.recipe.egg
44
eggs +=
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
45 46 47
  collective.recipe.template
  cns.recipe.symlink

48 49 50 51
# XXX - for compatibility
[monitor-eggs]
<= eggs

52
[extra-eggs]
53
<= eggs
54
interpreter = pythonwitheggs
55 56
eggs +=
  psutil
57
  PyRSS2Gen
58
  Jinja2
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
59

60

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

67 68 69 70
[monitor-service-conf-template]
<= monitor-template-base
filename = monitor-service.cfg.in
md5sum = 5913d2a0096b50537f394a49b762b3e5
71

72 73 74 75
[template-wrapper]
<= monitor-template-base
filename = wrapper.in
md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
76

77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
[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
md5sum = 5afad2bb6e088e080e907f1d837effbb
# End templates files

93 94
[monitor-template]
rendered = ${monitor2-template:rendered}
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

[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
md5sum = e439e22e754a50e1a3500cd4a995f6d8
context =
    key apache_location apache:location
    key gzip_location gzip:location
    raw monitor_bin ${monitor2-bin:location}/${monitor2-bin:filename}
    raw monitor_collect ${monitor-collect:location}/${monitor-collect:filename}
    raw monitor_conf_template ${monitor-conf:location}/${monitor-conf:filename}
    raw monitor_document_edit ${monitor-document-edit:location}/${monitor-document-edit: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 monitor_globalstate ${monitor-globalstate:location}/${monitor-globalstate:filename}
    raw monitor_password_promise_template ${monitor-password-promise:location}/${monitor-password-promise: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 monitor_service_conf_template ${monitor-service-conf-template:location}/${monitor-service-conf-template:filename}
    raw openssl_executable_location ${openssl:location}/bin/openssl
    raw python_executable ${buildout:executable}
    raw python_with_eggs ${buildout:directory}/bin/${extra-eggs:interpreter}
    raw promise_executor_py ${run-promise-py:rendered}
    raw template_wrapper ${template-wrapper:output}
    raw status2rss_executable_path ${status2rss-executable:location}/${status2rss-executable:filename}

[monitor2-bin]
<= monitor-template-script
filename = monitor.py
129
md5sum = 222365a469f8ab08a0367d81c0b03982
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148

[run-promise-py]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/scripts/run-promise.py
rendered = ${buildout:parts-directory}/monitor-scripts/run-promise.py
md5sum = 8ba8b661c55f2c5a379e9e42573be486
mode = 0755
context =
  raw python ${buildout:directory}/bin/${extra-eggs:interpreter}

[monitor-password-promise]
<= monitor-template-script
filename = monitor-password-promise.py
md5sum = f7e937d6619eb674f39f34718928d91d

[status2rss-executable]
<= monitor-template-script
filename = status2rss.py
md5sum = f297779d0881f4bd48081506efb492a4
149

150 151 152 153
[monitor-globalstate]
<= monitor-template-script
filename = globalstate.py
md5sum = 384a1148cb3da9cf353a108fe70709c5
154

155 156 157 158
[monitor-collect]
<= monitor-template-script
filename = collect.py
md5sum = cc65aebd4c35b3172a7ca83abde761bc
159

160 161 162
[monitor-document-edit]
<= monitor-template-script
filename = monitor-document.py
163
md5sum = f3e557e5d81291a22d6d2837a9e37bd0
164

165

166 167 168 169 170
[make-rss-script]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/make-rss.sh.in
md5sum = 98c8f6fd81e405b0ad10db07c3776321
output = ${buildout:directory}/template-make-rss.sh.in
171 172
mode = 0644

173 174


175 176 177 178 179 180 181 182
[monitor-web-monitor-logout-cgi]
recipe = slapos.recipe.template:jinja2
filename = monitor-logout.py.cgi
md5sum = 5b3c0aa559722a3bae5a692ea9a0a441
mode = 0755
template = ${:_profile_base_location_}/${:filename}
rendered = ${buildout:directory}/monitor-logout.cgi
context = key python_executable buildout:executable
183

184 185 186 187
[monitor-web-monitor-promise-runner-cgi]
<= monitor-download-base
filename = monitor-run-promise.py.cgi
md5sum = 15625e5bf6c1b57b9199250951ffc16e
188

189 190 191 192
[monitor-password-py-cgi]
<= monitor-download-base
md5sum = 04fc7e6d892d29a601cfd43d1700eeda
filename = monitor-password.py.cgi