Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos
Commits
fb36acc7
Commit
fb36acc7
authored
Apr 26, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
133fb058
5010cfa2
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
273 additions
and
89 deletions
+273
-89
component/boost-lib/buildout.cfg
component/boost-lib/buildout.cfg
+3
-1
component/curl/buildout.cfg
component/curl/buildout.cfg
+2
-2
component/nodejs/0001-fix-execvp-printf-argument-list-too-long.patch
...odejs/0001-fix-execvp-printf-argument-list-too-long.patch
+76
-0
component/nodejs/buildout.cfg
component/nodejs/buildout.cfg
+5
-1
setup.py
setup.py
+1
-1
software/agent/software.cfg
software/agent/software.cfg
+7
-7
software/apache-frontend/buildout.hash.cfg
software/apache-frontend/buildout.hash.cfg
+1
-1
software/apache-frontend/software.cfg
software/apache-frontend/software.cfg
+8
-8
software/apache-frontend/templates/trafficserver/records.config.jinja2
...he-frontend/templates/trafficserver/records.config.jinja2
+2
-2
software/erp5testnode/software.cfg
software/erp5testnode/software.cfg
+2
-1
software/kvm/common.cfg
software/kvm/common.cfg
+1
-1
software/kvm/instance-kvm.cfg.jinja2
software/kvm/instance-kvm.cfg.jinja2
+10
-4
software/kvm/software.cfg
software/kvm/software.cfg
+1
-1
software/neoppod/software-common.cfg
software/neoppod/software-common.cfg
+9
-9
software/nginx-push-stream/software.cfg
software/nginx-push-stream/software.cfg
+1
-1
software/re6stnet/software.cfg
software/re6stnet/software.cfg
+7
-7
software/slapos-master/apache-backend.conf.in
software/slapos-master/apache-backend.conf.in
+64
-4
software/slapos-master/buildout.hash.cfg
software/slapos-master/buildout.hash.cfg
+30
-0
software/slapos-master/instance-balancer.cfg.in
software/slapos-master/instance-balancer.cfg.in
+21
-23
software/slapos-master/instance-erp5.cfg.in
software/slapos-master/instance-erp5.cfg.in
+11
-1
software/slapos-master/software.cfg
software/slapos-master/software.cfg
+4
-7
software/slaprunner/software.cfg
software/slaprunner/software.cfg
+1
-1
stack/logrotate/buildout.hash.cfg
stack/logrotate/buildout.hash.cfg
+1
-1
stack/logrotate/logrotate_entry.in
stack/logrotate/logrotate_entry.in
+4
-4
stack/monitor/buildout.cfg
stack/monitor/buildout.cfg
+1
-1
No files found.
component/boost-lib/buildout.cfg
View file @
fb36acc7
...
...
@@ -3,6 +3,7 @@ parts =
boost-lib
extends =
../bzip2/buildout.cfg
../gcc/buildout.cfg
../zlib/buildout.cfg
[boost-lib]
...
...
@@ -13,8 +14,9 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
configure-command = ./bootstrap.sh --prefix=${:location} --with-python=${python2.7:location}/bin/python2.7
make-binary =
make-options =
make-targets = ./b2 link=shared dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib install
make-targets = ./b2 link=shared dll-path=${:location}/lib:${bzip2:location}/lib:${
gcc:location}/lib:${gcc:location}/lib64:${
zlib:location}/lib install
environment =
PATH=${gcc:location}/bin:%(PATH)s
BZIP2_INCLUDE=${bzip2:location}/include
BZIP2_LIBPATH=${bzip2:location}/lib
ZLIB_INCLUDE=${zlib:location}/include
...
...
component/curl/buildout.cfg
View file @
fb36acc7
...
...
@@ -12,8 +12,8 @@ parts =
[curl]
recipe = slapos.recipe.cmmi
url = http://curl.haxx.se/download/curl-7.5
2.1
.tar.bz2
md5sum =
dd014df06ff1d12e173de86873f9f77a
url = http://curl.haxx.se/download/curl-7.5
4.0
.tar.bz2
md5sum =
89bb7ba87384dfbf4f1a3f953da42458
configure-options =
--disable-static
--disable-ldap
...
...
component/nodejs/0001-fix-execvp-printf-argument-list-too-long.patch
0 → 100644
View file @
fb36acc7
--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
@@ -144,6 +144,25 @@
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
+define xargs
+ $(1) $(wordlist 1,100,$(2))
+ $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
+endef
+
+define write-to-file
+ @echo >$(1)
+ $(call xargs,printf "%s\\n" >>$(1),$(2))
+endef
+
+OBJ_FILE_LIST_SFX := ar-file-list
+
+define create_archive
+ $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
+ rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
+ $(call write-to-file,$(OBJ_FILE_LIST),$(filter %.o,$(2)))
+ $(AR.$(TOOLSET)) crs $(1) @$(OBJ_FILE_LIST)
+endef
+
# We support two kinds of shared objects (.so):
# 1) shared_library, which is just bundling together many dependent libraries
# into a link line.
@@ -1583,8 +1600,7 @@
self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
part_of_all, postbuilds=postbuilds)
else:
- self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
- postbuilds=postbuilds)
+ self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_archive,$@,$^)'])
elif self.type == 'shared_library':
self.WriteLn('%s: LD_INPUTS := %s' % (
QuoteSpaces(self.output_binary),
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/pylib/gyp/generator/make.py
@@ -144,6 +144,25 @@
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
+define xargs
+ $(1) $(wordlist 1,100,$(2))
+ $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
+endef
+
+define write-to-file
+ @echo >$(1)
+ $(call xargs,printf "%s\\n" >>$(1),$(2))
+endef
+
+OBJ_FILE_LIST_SFX := ar-file-list
+
+define create_archive
+ $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
+ rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
+ $(call write-to-file,$(OBJ_FILE_LIST),$(filter %.o,$(2)))
+ $(AR.$(TOOLSET)) crs $(1) @$(OBJ_FILE_LIST)
+endef
+
# We support two kinds of shared objects (.so):
# 1) shared_library, which is just bundling together many dependent libraries
# into a link line.
@@ -1584,8 +1601,7 @@
self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
part_of_all, postbuilds=postbuilds)
else:
- self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
- postbuilds=postbuilds)
+ self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_archive,$@,$^)'])
elif self.type == 'shared_library':
self.WriteLn('%s: LD_INPUTS := %s' % (
QuoteSpaces(self.output_binary),
component/nodejs/buildout.cfg
View file @
fb36acc7
[buildout]
extends =
../patch/buildout.cfg
../git/buildout.cfg
../pkgconfig/buildout.cfg
../openssl/buildout.cfg
...
...
@@ -56,10 +57,13 @@ configure-options =
--openssl-libpath=${openssl:location}/lib
environment =
HOME=${buildout:parts-directory}/${:_buildout_section_name_}
PATH=${pkgconfig:location}/bin:%(PATH)s
PATH=${pkgconfig:location}/bin:
${patch:location}/bin:
%(PATH)s
PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
CPPFLAGS=-I${zlib:location}/include
LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
patch-options = -p1
patches =
${:_profile_base_location_}/0001-fix-execvp-printf-argument-list-too-long.patch#9a7335043e1e030d623f7c624d8456f0
[nodejs-0.10]
...
...
setup.py
View file @
fb36acc7
...
...
@@ -28,7 +28,7 @@ from setuptools import setup, find_packages
import
glob
import
os
version
=
'1.0.50'
version
=
'1.0.5
1.dev
0'
name
=
'slapos.cookbook'
long_description
=
open
(
"README.rst"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.rst"
).
read
()
+
"
\
n
"
...
...
software/agent/software.cfg
View file @
fb36acc7
...
...
@@ -51,29 +51,29 @@ pycrypto = 2.6.1
pycurl = 7.43.0
slapos.recipe.download = 1.0
slapos.recipe.template = 2.8
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
smmap = 0.9.0
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
GitPython = 2.0.8
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
atomize = 0.2.0
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
feedparser = 5.2.1
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
lockfile = 0.12.2
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
paramiko = 2.0.1
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
rpdb = 0.1.5
software/apache-frontend/buildout.hash.cfg
View file @
fb36acc7
...
...
@@ -75,7 +75,7 @@ md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
[template-trafficserver-records-config]
filename = templates/trafficserver/records.config.jinja2
md5sum =
7578b780c6bffdbadb130b796c874d29
md5sum =
84baef0a49c9a65e8f2d2ffdb8c1d39c
[template-trafficserver-storage-config]
filename = templates/trafficserver/storage.config.jinja2
...
...
software/apache-frontend/software.cfg
View file @
fb36acc7
...
...
@@ -11,7 +11,7 @@ plone.recipe.command = 1.1
pycrypto = 2.6.1
rdiff-backup = 1.0.5+SlapOSPatched001
slapos.recipe.template = 2.8
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
smmap = 0.9.0
numpy = 1.11.2
pyasn1 = 0.2.3
...
...
@@ -31,29 +31,29 @@ erp5.util = 0.4.46
passlib = 1.6.5
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
GitPython = 2.0.8
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
atomize = 0.2.0
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
feedparser = 5.2.1
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
lockfile = 0.12.2
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
paramiko = 2.0.1
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
pycurl = 7.43.0
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
rpdb = 0.1.5
software/apache-frontend/templates/trafficserver/records.config.jinja2
View file @
fb36acc7
...
...
@@ -174,8 +174,8 @@ CONFIG proxy.config.http.forward.proxy_auth_to_parent INT 0
# in : ua -> proxy connection
CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 115
CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 120
CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30
CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30
CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30
0
CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30
0
CONFIG proxy.config.http.transaction_active_timeout_in INT 900
CONFIG proxy.config.http.transaction_active_timeout_out INT 0
CONFIG proxy.config.http.accept_no_activity_timeout INT 120
...
...
software/erp5testnode/software.cfg
View file @
fb36acc7
...
...
@@ -60,5 +60,6 @@ md5sum = 05519f3887a309d3ec069e0aa9f52ebc
[versions]
PyXML = 0.8.5
erp5.util = 0.4.4
7
erp5.util = 0.4.4
8
slapos.recipe.template = 2.7
ipython = 5.3.0
software/kvm/common.cfg
View file @
fb36acc7
...
...
@@ -98,7 +98,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
md5sum =
b7b06fa8586198640ca0bb185ab48161
md5sum =
c66ec96a73470148707937bf96436fd6
download-only = true
on-update = true
...
...
software/kvm/instance-kvm.cfg.jinja2
View file @
fb36acc7
...
...
@@ -155,10 +155,10 @@ mode = 700
context =
section parameter_dict kvm-parameter-dict
[kvm-contoller]
[kvm-cont
r
oller]
recipe = slapos.recipe.template:jinja2
template = {{ template_kvm_controller_run }}
rendered = ${directory:
scripts}/kvm_controller
rendered = ${directory:
bin}/kvm_controller_raw
mode = 700
context =
section parameter_dict kvm-controller-parameter-dict
...
...
@@ -187,7 +187,13 @@ recipe = slapos.cookbook:wrapper
socket-path = ${kvm-controller-parameter-dict:socket-path}
wrapper-path = ${directory:services}/kvm
command-line = ${kvm-run:rendered}
kvm-controller = ${kvm-contoller:rendered}
kvm-controller = ${kvm-controller-wrapper:wrapper-path}
[kvm-controller-wrapper]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:scripts}/kvm_controller
command-line = ${kvm-controller:rendered}
[kvm-vnc-promise]
...
...
@@ -616,7 +622,7 @@ parts =
certificate-authority
publish-connection-information
kvm-instance
kvm-cont
oll
er
kvm-cont
roller-wrapp
er
kvm-vnc-promise
kvm-disk-image-corruption-promise
websockify-sighandler
...
...
software/kvm/software.cfg
View file @
fb36acc7
...
...
@@ -5,7 +5,7 @@ extends = common.cfg
# XXX - use websockify = 0.5.1 for compatibility with kvm frontend
websockify = 0.5.1
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
erp5.util = 0.4.46
apache-libcloud = 1.1.0
collective.recipe.environment = 0.2.0
...
...
software/neoppod/software-common.cfg
View file @
fb36acc7
...
...
@@ -118,39 +118,39 @@ persistent = 4.2.3
pycrypto = 2.6.1
pycurl = 7.43.0
slapos.recipe.template = 2.10
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
smmap2 = 2.0.1
transaction = 1.7.0
zodbpickle = 0.6.0
zodbtools = 0.0.0.dev3
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
GitPython = 2.1.3
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
PyRSS2Gen = 1.1
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
atomize = 0.2.0
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
dnspython = 1.14.0
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
feedparser = 5.2.1
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
lockfile = 0.12.2
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
paramiko = 2.1.2
# Required by:
# slapos.toolbox==0.6
6
# slapos.toolbox==0.6
7
passlib = 1.7.1
software/nginx-push-stream/software.cfg
View file @
fb36acc7
...
...
@@ -46,4 +46,4 @@ mode = 0644
[versions]
slapos.recipe.template = 2.7
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
software/re6stnet/software.cfg
View file @
fb36acc7
...
...
@@ -112,15 +112,15 @@ plone.recipe.command = 1.1
pycrypto = 2.6.1
pycurl = 7.43.0
slapos.recipe.template = 2.7
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
smmap = 0.9.0
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
GitPython = 2.0.8
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
atomize = 0.2.0
# Required by:
...
...
@@ -128,11 +128,11 @@ atomize = 0.2.0
backports.ssl-match-hostname = 3.4.0.2
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
feedparser = 5.1.3
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
lockfile = 0.12.2
# Required by:
...
...
@@ -140,10 +140,10 @@ lockfile = 0.12.2
miniupnpc = 1.9
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
paramiko = 2.0.1
# Required by:
# slapos.toolbox = 0.6
6
# slapos.toolbox = 0.6
7
rpdb = 0.1.5
software/slapos-master/apache.conf.in
→
software/slapos-master/apache
-backend
.conf.in
View file @
fb36acc7
{# This file configures apache to redirect requests from ports to specific urls.
# It provides SSL support for server and optionaly for client.
#
# All parameters are given through the `parameter_dict` variable, see the
# list entries :
#
# parameter_dict = {
# # The path given to "PidFile"
# "pid-file": "<file_path>",
#
# # The number given to "TimeOut"
# "timeout": 300,
#
# # The path given to "SSLCertificateFile"
# "cert": "<file_path>",
#
# # The path given to "SSLCertificateKeyFile"
# "key": "<file_path>",
#
# # The value given to "SSLCipherSuite" (can be empty)
# "cipher": "",
#
# # The path given to "SSLSessionCache shmcb:<folder_path>(512000)"
# "ssl-session-cache": "<folder_path>",
#
# # The path given to "SSLCACertificateFile" (can be empty)
# # If this value is not empty, it enables client certificate check.
# # (Enabling "SSLVerifyClient require")
# "ca-cert": "<file_path>",
#
# # The path given to "SSLCARevocationFile" (used if ca-cert is not
# # empty)
# "crl": "<file_path>",
#
# # The path given to "ErrorLog"
# "error-log": "<file_path>",
#
# # The path given to "AccessLog"
# "access-log": "<file_path>",
#
# # The list of ip which apache will listen to.
# "ip-list": [
# "0.0.0.0",
# "[::1]",
# ],
#
# # The list of backends which apache should redirect to.
# "backend-list": [
# # (port, unused, internal_scheme)
# (8000, _, "http://10.0.0.10:8001"),
# (8002, _, "http://10.0.0.10:8003"),
# ],
# }
#
# This sample of `parameter_dict` will make apache listening to :
# - 0.0.0.0:8000 redirecting internaly to http://10.0.0.10:8001
# - [::1]:8000 redirecting internaly to http://10.0.0.10:8001
# - 0.0.0.0:8002 redirecting internaly to http://10.0.0.10:8003
# - [::1]:8002 redirecting internaly to http://10.0.0.10:8003
-#}
LoadModule unixd_module modules/mod_unixd.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule authz_core_module modules/mod_authz_core.so
...
...
@@ -18,7 +78,7 @@ LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so
AddOutputFilterByType DEFLATE text/cache-manifest text/html text/plain text/css application/hal+json application/json application/x-javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml
AddOutputFilterByType DEFLATE text/cache-manifest text/html text/plain text/css application/hal+json application/json application/x-javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml
application/x-font-ttf application/font-woff application/font-woff2 application/x-font-opentype
PidFile "{{ parameter_dict['pid-file'] }}"
ServerAdmin admin@
...
...
@@ -68,7 +128,7 @@ CustomLog "{{ parameter_dict['access-log'] }}" combined
</Directory>
RewriteEngine On
{% for
family_name, (port, _, backend, enable_authentication) in parameter_dict['backend-list'].items()
-%}
{% for
port, _, backend, enable_authentication in parameter_dict['backend-list']
-%}
{% for ip in parameter_dict['ip-list'] -%}
Listen {{ ip }}:{{ port }}
{% endfor -%}
...
...
@@ -82,8 +142,8 @@ Listen {{ ip }}:{{ port }}
LogFormat "%h %l %{REMOTE_USER}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
# We would like to separate the the authentificated logs.
ErrorLog "{{ parameter_dict['log-dir'] }}/apache-
{{ family_name }}
-error.log"
CustomLog "{{ parameter_dict['log-dir'] }}/apache-
{{ family_name }}
-access.log" combined
ErrorLog "{{ parameter_dict['log-dir'] }}/apache-
service
-error.log"
CustomLog "{{ parameter_dict['log-dir'] }}/apache-
service
-access.log" combined
{% endif -%}
SSLEngine on
RewriteRule ^/(.*) {{ backend }}/$1 [L,P]
...
...
software/slapos-master/buildout.hash.cfg
0 → 100644
View file @
fb36acc7
# THIS IS NOT A BUILDOUT FILE, despite purposedly using a compatible syntax.
# The only allowed lines here are (regexes):
# - "^#" comments, copied verbatim
# - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script.
# Re-generated.
# - other lines are copied verbatim
# Substitution (${...:...}), extension ([buildout] extends = ...) and
# section inheritance (< = ...) are NOT supported (but you should really
# not need these here).
[template-erp5]
filename = instance-erp5.cfg.in
md5sum = 1489091851f27c41243eeaa4967cc91c
[template-balancer]
filename = instance-balancer.cfg.in
md5sum = a410f10fe9766c9321ffd7b18ace5a4f
[template-apache-backend-conf]
filename = apache-backend.conf.in
md5sum = ea77222f440bb72fee4939fe1b72976e
[template-create-erp5-site-real]
filename = instance-create-erp5-site-real.cfg.in
md5sum = 86a2b244341218cd0c4b6d398c61ee20
software/slapos-master/instance-balancer.cfg.in
View file @
fb36acc7
...
...
@@ -17,8 +17,12 @@ per partition. No more (undefined result), no less (IndexError).
{% do apache_ip_list.append('[' ~ ipv6 ~ ']') -%}
{% endif -%}
[
simplefil
e]
[
jinja2-template-bas
e]
recipe = slapos.recipe.template:jinja2
mode = 644
[simplefile]
< = jinja2-template-base
template = inline:{{ '{{ content }}' }}
{% macro simplefile(section_name, file_path, content, mode='') -%}
...
...
@@ -44,7 +48,7 @@ ipv4 = {{ ipv4 }}
{% endif -%}
{% set haproxy_dict = {} -%}
{% set apache_dict = {} -%}
{% set next_port =
slapparameter_dict['tcpv4-port']
-%}
{% set next_port =
itertools.count(slapparameter_dict['tcpv4-port']).next
-%}
{% for family_name, parameter_id_list in sorted(
slapparameter_dict['zope-family-dict'].iteritems()) -%}
{% set zope_family_address_list = [] -%}
...
...
@@ -56,14 +60,14 @@ ipv4 = {{ ipv4 }}
{% do has_webdav.append(None) %}
{% endif -%}
{% if use_ipv6 -%}
[{{ section('zope-tunnel-' ~ next_port) }}]
{% set current_port = next_port() -%}
[{{ section('zope-tunnel-' ~ current_port) }}]
< = zope-tunnel-base
base-name = {{ 'zeo-tunnel-' ~
nex
t_port }}
ipv4-port = {{
nex
t_port }}
base-name = {{ 'zeo-tunnel-' ~
curren
t_port }}
ipv4-port = {{
curren
t_port }}
ipv6-port = {{ zope_address.split(']:')[1] }}
ipv6 = {{ zope_address.split(']:')[0][1:] }}
{% set zope_effective_address = ipv4 ~ ":" ~ next_port -%}
{% set next_port = next_port + 1 -%}
{% set zope_effective_address = ipv4 ~ ":" ~ current_port -%}
{% else -%}
{% set zope_effective_address = zope_address -%}
{% endif -%}
...
...
@@ -77,8 +81,7 @@ ipv6 = {{ zope_address.split(']:')[0][1:] }}
# do a no-op getitem.
-#}
{% do zope_family_address_list[0][0] -%}
{% set haproxy_port = next_port -%}
{% set next_port = next_port + 1 -%}
{% set haproxy_port = next_port() -%}
{% do haproxy_dict.__setitem__(family_name, (haproxy_port, zope_family_address_list)) -%}
{% if has_webdav -%}
{% set internal_scheme = 'http' -%}{# mod_rewrite does not recognise webdav scheme -#}
...
...
@@ -89,8 +92,7 @@ ipv6 = {{ zope_address.split(']:')[0][1:] }}
{% endif -%}
{% set backend_path = slapparameter_dict['backend-path-dict'][family_name] -%}
{% set ssl_authentication = slapparameter_dict['ssl-authentication-dict'][family_name] -%}
{% do apache_dict.__setitem__(family_name, (next_port, external_scheme, internal_scheme ~ '://' ~ ipv4 ~ ':' ~ haproxy_port ~ backend_path, ssl_authentication)) -%}
{% set next_port = next_port + 1 -%}
{% do apache_dict.__setitem__(family_name, (next_port(), external_scheme, internal_scheme ~ '://' ~ ipv4 ~ ':' ~ haproxy_port ~ backend_path, ssl_authentication)) -%}
{% endfor -%}
[haproxy-cfg-parameter-dict]
...
...
@@ -100,7 +102,7 @@ backend-dict = {{ dumps(haproxy_dict) }}
ip = {{ ipv4 }}
[haproxy-cfg]
recipe = slapos.recipe.template:jinja2
< = jinja2-template-base
template = {{ parameter_dict['template-haproxy-cfg'] }}
rendered = ${directory:etc}/haproxy.cfg
context = section parameter_dict haproxy-cfg-parameter-dict
...
...
@@ -120,7 +122,7 @@ ca-cert = ${directory:apache-conf}/ca.crt
crl = ${directory:apache-conf}/crl.pem
[apache-conf-parameter-dict]
backend-list = {{ dumps(apache_dict) }}
backend-list = {{ dumps(apache_dict
.values()
) }}
ip-list = {{ dumps(apache_ip_list) }}
pid-file = ${directory:run}/apache.pid
error-log = ${directory:log}/apache-error.log
...
...
@@ -145,7 +147,7 @@ shared-crl = {{ shared_ca_path }}/crl
[apache-conf]
recipe = slapos.recipe.template:jinja2
< = jinja2-template-base
template = {{ parameter_dict['template-apache-conf'] }}
rendered = ${directory:apache-conf}/apache.conf
context = section parameter_dict apache-conf-parameter-dict
...
...
@@ -201,22 +203,18 @@ crl =
{% do part_list.append('logrotate-' ~ base_name) -%}
{% do apache_service_log_list.__setitem__(family_name, base_name) -%}
[logrotate-{{ base_name }}]
recipe = slapos.cookbook:logrotate.d
logrotate-entries = ${logrotate:logrotate-entries}
backup = ${logrotate:backup}
< = logrotate-entry-base
name = {{ base_name }}
log = ${apache-conf-parameter-dict:log-dir}/{{ base_name }}-error.log ${apache-conf-parameter-dict:log-dir}/{{ base_name }}-access.log
post = {{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${apache-conf-parameter-dict:pid-file} -s USR1
post =
test ! -s ${apache-conf-parameter-dict:pid-file} ||
{{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${apache-conf-parameter-dict:pid-file} -s USR1
{% endif -%}
{% endfor -%}
[logrotate-apache]
recipe = slapos.cookbook:logrotate.d
logrotate-entries = ${logrotate:logrotate-entries}
backup = ${logrotate:backup}
< = logrotate-entry-base
name = apache
log = ${apache-conf-parameter-dict:error-log} ${apache-conf-parameter-dict:access-log}
post = {{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${apache-conf-parameter-dict:pid-file} -s USR1
post =
test ! -s ${apache-conf-parameter-dict:pid-file} ||
{{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${apache-conf-parameter-dict:pid-file} -s USR1
[directory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -237,7 +235,7 @@ crl = ${:ca-dir}/crl
[monitor-instance-parameter]
monitor-httpd-ipv6 = {{ (ipv6_set | list)[0] }}
monitor-httpd-port = {{ next_port }}
monitor-httpd-port = {{ next_port
()
}}
monitor-title = Balancer monitor
[buildout]
...
...
software/slapos-master/instance-erp5.cfg.in
View file @
fb36acc7
...
...
@@ -117,6 +117,10 @@ name = neo-${gen-neo-cluster-base:passwd}
[gen-smtpd-sasl-password]
< = gen-password
{% set zope_partition_dict = slapparameter_dict.get('zope-partition-dict', {'1': {}}) -%}
{% set zope_address_list_id_dict = {} -%}
{% if zope_partition_dict -%}
[request-zope-base]
<= request-common
return =
...
...
@@ -142,6 +146,7 @@ config-mysql-url-list = ${request-mariadb:connection-database-list}
config-site-id = {{ dumps(site_id) }}
config-smtp-url = ${request-smtp:connection-url}
config-timezone = {{ dumps(slapparameter_dict.get('timezone', 'UTC')) }}
config-wendelin-core-zblk-fmt = {{ dumps(slapparameter_dict.get('wendelin-core-zblk-fmt', '')) }}
config-ca-path = ${directory:ca-dir}
config-zodb-dict = {{ dumps(zodb_dict) }}
{% for server_type, server_dict in storage_dict.iteritems() -%}
...
...
@@ -161,7 +166,8 @@ software-type = zope
{% set jupyter_zope_family_default = [] -%}
{% set zope_backend_path_dict = {} -%}
{% set ssl_authentication_dict = {} -%}
{% for custom_name, zope_parameter_dict in slapparameter_dict.get('zope-partition-dict', {'1': {}}).items() -%}
{% for custom_name, zope_parameter_dict in zope_partition_dict.items() -%}
{% set partition_name = 'zope-' ~ custom_name -%}
{% set section_name = 'request-' ~ partition_name -%}
{% set backend_path = zope_parameter_dict.get('backend-path', '/') % {'site-id': site_id} %}
...
...
@@ -314,6 +320,8 @@ config-{{ name }} = {{ value }}
return = site_url
{% endif -%}
{% endif -%}{# if zope_partition_dict -#}
[publish]
recipe = slapos.cookbook:publish.serialised
-extends = publish-early
...
...
@@ -321,11 +329,13 @@ recipe = slapos.cookbook:publish.serialised
neo-masters = ${neo-0-final:connection-masters}
neo-admins = ${neo-0-final:connection-admins}
{% endif -%}
{% if zope_address_list_id_dict -%}
{#
Pick any published hosts-dict, they are expected to be identical - and there is
no way to check here.
-#}
hosts-dict = {{ '${' ~ zope_address_list_id_dict.keys()[0] ~ ':connection-hosts-dict}' }}
{% endif -%}
{% for name, value in publish_dict.items() -%}
{{ name }} = {{ value }}
{% endfor -%}
...
...
software/slapos-master/software.cfg
View file @
fb36acc7
[buildout]
extends =
../../software/erp5/software.cfg
buildout.hash.cfg
parts +=
vifib-fix-products-paths
...
...
@@ -52,22 +53,18 @@ mode = 644
[template-erp5]
< = download-base-part
filename = instance-erp5.cfg.in
md5sum = 073b96888388a39721a8cef3e90c5c5b
[template-balancer]
< = download-base-part
filename = instance-balancer.cfg.in
md5sum = 02c258e51ff4619efe258bbf24b9ceed
[template-apache-conf]
< = download-base-part
filename = apache.conf.in
md5sum = 6a9426138d46ba5de75a86199be4f8d1
[template-apache-backend-conf]
url = ${:_profile_base_location_}/${:filename}
filename = apache-backend.conf.in
[template-create-erp5-site-real]
< = download-base-part
filename = instance-create-erp5-site-real.cfg.in
md5sum = 86a2b244341218cd0c4b6d398c61ee20
# Test Suite: SLAPOS-MASTER-MASTER ran at 2017/04/14 15:39:16.835629 UTC
...
...
software/slaprunner/software.cfg
View file @
fb36acc7
...
...
@@ -17,7 +17,7 @@ gunicorn = 19.4.5
prettytable = 0.7.2
pycurl = 7.43.0
slapos.recipe.template = 2.9
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
smmap = 0.9.0
# Required by:
...
...
stack/logrotate/buildout.hash.cfg
View file @
fb36acc7
...
...
@@ -19,7 +19,7 @@ md5sum = 67954c82a8030e5dcac3a8c5d115f624
[logrotate-entry-template]
filename = logrotate_entry.in
md5sum =
71462fcd0a97b3ccc7b6ac6af6b2ca1
e
md5sum =
117e46af6d9d31c09eeb86089d11407
e
[template-logrotate-base]
filename = instance-logrotate-base.cfg.in
...
...
stack/logrotate/logrotate_entry.in
View file @
fb36acc7
...
...
@@ -10,10 +10,10 @@
create
olddir {{ backup }}
missingok
{% if pre %}prerotate
{
{% if pre %}prerotate
{{ pre }}
}
{% endif %}
{% if post %}postrotate
{
endscript
{% endif %}
{% if post %}postrotate
{{ post }}
}
{% endif %}
endscript
{% endif %}
}
stack/monitor/buildout.cfg
View file @
fb36acc7
...
...
@@ -131,5 +131,5 @@ depends =
PyRSS2Gen = 1.1
cns.recipe.symlink = 0.2.3
pycurl = 7.43.0
slapos.toolbox = 0.6
6
slapos.toolbox = 0.6
7
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment