Update md5 checksum
[slapos.git] / software / html5as / instance_html5as.cfg
1 [buildout]
2 parts =
3     nginx_conf
4     html5as_bin
5     website_download
6     publish-connection-information
7
8 eggs-directory = ${buildout:eggs-directory}
9 develop-eggs-directory = ${buildout:develop-eggs-directory}
10
11 # partition tree
12 # /
13 # |- etc/
14 # |    |- nginx.conf
15 # |    |- run/
16 # |         |- html5as (binary)
17 # |- var/
18 # |    |- run/
19 # |    |    |- nginx.pid
20 # |    |- log/
21 # |    |    |- nginx.log
22 # |    |    |- nginx.access.log
23 # |- srv/
24 # |    |- html5as/ (doc root)
25 # |    |        |- index.html
26 # |    |- backup/
27
28 [rootdirectory]
29 recipe = slapos.cookbook:mkdirectory
30 etc = $${buildout:directory}/etc
31 var = $${buildout:directory}/var
32 srv = $${buildout:directory}/srv
33
34 [basedirectory]
35 recipe = slapos.cookbook:mkdirectory
36 services = $${rootdirectory:etc}/run
37 log = $${rootdirectory:var}/log
38 run = $${rootdirectory:var}/run
39 backup = $${rootdirectory:srv}/backup
40 data = $${rootdirectory:srv}/html5as
41
42 [html5as]
43 # Options
44 nb_workers = 2
45
46 # Network
47 ip = $${slap-network-information:global-ipv6}
48 port = 8080
49
50 # Paths
51 # Log
52 path_pid = $${basedirectory:run}/nginx.pid
53 path_log = $${basedirectory:log}/nginx.log
54 path_access_log = $${basedirectory:log}/nginx.access.log
55 path_error_log = $${basedirectory:log}/nginx.error.log
56 path_tmp = $${buildout:directory}/tmp
57 # Docroot
58 docroot = $${basedirectory:data}
59 default_index = $${basedirectory:data}/index.html
60 # Config files
61 path_nginx_conf = $${rootdirectory:etc}/nginx.conf
62 # Executables
63 bin_nginx = ${nginx:location}/sbin/nginx
64 bin_html5as = $${basedirectory:services}/html5as
65
66 # Utils
67 path_shell = ${dash:location}/bin/dash
68
69 [website_download]
70 recipe = hexagonit.recipe.download
71 # Website tarball
72 # Hardcoded to easily test
73 url = http://sheldy.com/~tom/WTF/slapos.tar.gz
74 destination = $${html5as:docroot}
75
76 [nginx_conf]
77 recipe = slapos.recipe.template:jinja2
78 template = ${:_profile_base_location_}/templates/nginx_conf.in
79 rendered = $${html5as:path_nginx_conf}
80 md5sum = 6338abecda61f4414392b6f4c1d09e8a
81 context = section param_html5as html5as
82
83 [html5as_bin]
84 recipe = slapos.recipe.template:jinja2
85 template = ${:_profile_base_location_}/templates/html5as_bin.in
86 rendered = $${html5as:bin_html5as}
87 md5sum = 0ddb3dfbd963819a1666ca47aa37bbc5
88 context = section param_html5as html5as
89 umask = 077
90
91 [publish-connection-information]
92 recipe = slapos.cookbook:publish
93 server_url = http://[$${html5as:ip}]:$${html5as:port}