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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stephane VAROQUI
slapos
Commits
a61a1add
Commit
a61a1add
authored
Jun 27, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
a7c16f8c
1f2c7f5e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
101 additions
and
47 deletions
+101
-47
software/apache-frontend/README.apache_frontend.rst
software/apache-frontend/README.apache_frontend.rst
+0
-7
software/apache-frontend/buildout.hash.cfg
software/apache-frontend/buildout.hash.cfg
+3
-3
software/apache-frontend/instance-apache-frontend.cfg
software/apache-frontend/instance-apache-frontend.cfg
+23
-6
software/apache-frontend/templates/default-virtualhost.conf.in
...are/apache-frontend/templates/default-virtualhost.conf.in
+0
-3
software/apache-frontend/templates/nginx.cfg.in
software/apache-frontend/templates/nginx.cfg.in
+20
-20
software/slaprunner/buildout.hash.cfg
software/slaprunner/buildout.hash.cfg
+1
-1
software/slaprunner/template/runner-import.sh.jinja2
software/slaprunner/template/runner-import.sh.jinja2
+16
-0
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+14
-0
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+17
-0
stack/slapos.cfg
stack/slapos.cfg
+6
-6
No files found.
software/apache-frontend/README.apache_frontend.rst
View file @
a61a1add
...
...
@@ -290,8 +290,6 @@ Request slave frontend instance so that https://[1:2:3:4:5:6:7:8]:1234 will be
ProxyPreserveHost On
ProxyTimeout 600
RewriteEngine On
# Remove "Secure" from cookies, as backend may be https
Header edit Set-Cookie "(?i)^(.+);secure$" "$1"
# Not using HTTPS? Ask that guy over there.
# Dummy redirection to https. Note: will work only if https listens
# on standard port (443).
...
...
@@ -340,9 +338,6 @@ Request slave frontend instance so that https://[1:2:3:4:5:6:7:8]:1234 will be
ProxyTimeout 600
RewriteEngine On
# Remove "Secure" from cookies, as backend may be https
Header edit Set-Cookie "(?i)^(.+);secure$" "$1"
# Not using HTTPS? Ask that guy over there.
# Dummy redirection to https. Note: will work only if https listens
# on standard port (443).
...
...
@@ -416,8 +411,6 @@ the proxy::
LogLevel info
LogFormat "%%h %%l %%{REMOTE_USER}i %%t \"%%r\" %%>s %%b \"%%{Referer}i\" \"%%{User-Agent}i\" %%D" combined
CustomLog "%(access_log)s" combined
# Remove "Secure" from cookies, as backend may be https
Header edit Set-Cookie "(?i)^(.+);secure$" "$1"
# Not using HTTPS? Ask that guy over there.
# Dummy redirection to https. Note: will work only if https listens
# on standard port (443).
...
...
software/apache-frontend/buildout.hash.cfg
View file @
a61a1add
...
...
@@ -18,7 +18,7 @@ md5sum = f686f765e55d1dce2e55a400f0714b3e
[template-apache-frontend]
filename = instance-apache-frontend.cfg
md5sum =
b6a2c860ea1cd4bc9d185c7108c52d0a
md5sum =
d6570c7a7e3c48efa7305677fe7c7ceb
[template-apache-replicate]
filename = instance-apache-replicate.cfg.in
...
...
@@ -54,7 +54,7 @@ md5sum = d98a01182f38868612948c87d5231428
[template-default-slave-virtualhost]
filename = templates/default-virtualhost.conf.in
md5sum =
4a2db0b69d2941cdf08ebf55575d8ad8
md5sum =
7890469ecc5e7f46be5b2c3074a09b52
[template-cached-slave-virtualhost]
filename = templates/cached-virtualhost.conf.in
...
...
@@ -82,7 +82,7 @@ md5sum = 117238225b3fc3c5b5be381815f44c67
[template-nginx-configuration]
filename = templates/nginx.cfg.in
md5sum =
18633ce55e53340efa1ba7693aac4152
md5sum =
f334ef32234771aee69c06f843da1980
[template-nginx-eventsource-slave-virtualhost]
filename = templates/nginx-eventsource-slave.conf.in
...
...
software/apache-frontend/instance-apache-frontend.cfg
View file @
a61a1add
...
...
@@ -676,14 +676,31 @@ curl_path = ${curl:location}/bin/curl
#
[nginx-frontend]
recipe = slapos.cookbook:wrapper
command-line = ${nginx-push-stream:location}/sbin/nginx -c $${
nginx-configuration:output
}
command-line = ${nginx-push-stream:location}/sbin/nginx -c $${
dynamic-nginx-frontend-template:rendered
}
wrapper-path = $${directory:service}/frontend_nginx
[
nginx-configuration
]
recipe = slapos.recipe.templat
e
url
= ${template-nginx-configuration:output}
output
= $${directory:etc}/nginx.cfg
[
dynamic-nginx-frontend-template
]
< = jinja2-template-bas
e
template
= ${template-nginx-configuration:output}
rendered
= $${directory:etc}/nginx.cfg
mode = 0600
extra-context =
key ip nginx-configuration:ip
key local_ip nginx-configuration:local_ip
key port nginx-configuration:port
key plain_port nginx-configuration:plain_port
key worker_processes nginx-configuration:worker_processes
key pidfile nginx-configuration:pid-file
key worker_connections nginx-configuration:worker_connections
key error_log nginx-configuration:error_log
key access_log nginx-configuration:access_log
key ssl_certificate ca-frontend:cert-file
key ssl_key ca-frontend:key-file
key varnginx directory:varnginx
key slave_configuration_directory nginx-configuration:slave-configuration-directory
key document_root apache-directory:document-root
[nginx-configuration]
access_log = $${directory:log}/nginx-access.log
error_log = $${directory:log}/nginx-error.log
ip = $${slap-network-information:global-ipv6}
...
...
@@ -695,7 +712,7 @@ worker_connections = 1024
slave-configuration-directory = $${apache-directory:nginx-slave-configuration}
pid-file = $${directory:run}/nginx.pid
nginx-graceful-command = $${:nginx-configuration-verification}; if [ $? -eq 0 ]; then kill -HUP $(cat $${:pid-file}); fi
nginx-configuration-verification = ${nginx-push-stream:location}/sbin/nginx -t -c $${
nginx-configuration:output
}
nginx-configuration-verification = ${nginx-push-stream:location}/sbin/nginx -t -c $${
dynamic-nginx-frontend-template:rendered
}
[frontend-nginx-graceful]
< = jinja2-template-base
...
...
software/apache-frontend/templates/default-virtualhost.conf.in
View file @
a61a1add
...
...
@@ -123,9 +123,6 @@
LogFormat "%h %l %{REMOTE_USER}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
CustomLog "{{ slave_parameter.get('access_log') }}" combined
# Remove "Secure" from cookies, as backend may be https
Header edit Set-Cookie "(?i)^(.+);secure$" "$1"
{% if enable_h2 %}
Protocols h2 http/1.1
{% endif -%}
...
...
software/apache-frontend/templates/nginx.cfg.in
View file @
a61a1add
daemon off; # run in the foreground so supervisord can look after it
worker_processes
$${nginx-configuration:worker_processes
};
pid
$${nginx-configuration:pid-file
};
worker_processes
{{ worker_processes }
};
pid
{{ pidfile }
};
events {
worker_connections
$${nginx-configuration:worker_connections
};
worker_connections
{{ worker_connections }
};
# multi_accept on;
}
error_log
$${nginx-configuration:error_log
};
error_log
{{ error_log }
};
http {
...
...
@@ -23,17 +23,17 @@ http {
types_hash_max_size 2048;
server_tokens off;
error_log
$${nginx-configuration:error_log
};
error_log
{{ error_log }
};
log_format custom '$remote_addr - $remote_user $time_local $status $body_bytes_sent "$http_referer" "$http_user_agent" $request_time';
access_log
$${nginx-configuration:access_log
} custom;
access_log
{{ access_log }
} custom;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
default_type application/octet-stream;
ssl_certificate
$${ca-frontend:cert-file
};
ssl_certificate_key
$${ca-frontend:key-file
};
ssl_certificate
{{ ssl_certificate }
};
ssl_certificate_key
{{ ssl_key }
};
##
# Gzip Settings
...
...
@@ -53,18 +53,18 @@ http {
##
push_stream_shared_memory_size 32m;
fastcgi_temp_path
$${directory:varnginx
} 1 2;
uwsgi_temp_path
$${directory:varnginx
} 1 2;
scgi_temp_path
$${directory:varnginx
} 1 2;
fastcgi_temp_path
{{ varnginx }
} 1 2;
uwsgi_temp_path
{{ varnginx }
} 1 2;
scgi_temp_path
{{ varnginx }
} 1 2;
client_body_temp_path
$${directory:varnginx
} 1 2;
proxy_temp_path
$${directory:varnginx
} 1 2;
client_body_temp_path
{{ varnginx }
} 1 2;
proxy_temp_path
{{ varnginx }
} 1 2;
include
$${nginx-configuration:slave-configuration-directory
}/*.conf;
include
{{ slave_configuration_directory }
}/*.conf;
server {
listen [
$${nginx-configuration:ip}]:$${nginx-configuration:plain_port
};
listen
$${nginx-configuration:local_ip}:$${nginx-configuration:plain_port
};
listen [
{{ ip }}]:{{ plain_port }
};
listen
{{ local_ip }}:{{ plain_port }
};
## Serve an error 204 (No Content) for favicon.ico
...
...
@@ -73,14 +73,14 @@ http {
}
location / {
root
$${apache-directory:document-root
};
root
{{ document_root }
};
index notfound.html;
}
}
server {
listen [
$${nginx-configuration:ip}]:$${nginx-configuration:port
} ssl;
listen
$${nginx-configuration:local_ip}:$${nginx-configuration:port
} ssl;
listen [
{{ ip }}]:{{ port }
} ssl;
listen
{{ local_ip }}:{{ port }
} ssl;
ssl on;
...
...
@@ -96,7 +96,7 @@ http {
}
location / {
root
$${apache-directory:document-root
};
root
{{ document_root }
};
index notfound.html;
}
}
...
...
software/slaprunner/buildout.hash.cfg
View file @
a61a1add
...
...
@@ -22,7 +22,7 @@ md5sum = 04e31ac503753f89510dd412b4680c56
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
md5sum =
1edd9c7a20e208b6cb647886bfb6d1bb
md5sum =
ab5f0ae6febc0d5c247ec5542b5f0519
[instance-runner-import]
filename = instance-runner-import.cfg.in
...
...
software/slaprunner/template/runner-import.sh.jinja2
View file @
a61a1add
...
...
@@ -162,6 +162,22 @@ log_message "Building newest Software Release..."
"$SLAPOS" node software --cfg "$SLAPOSCFG" --all --master-url="$MASTERURL" --logfile "$SLAPGRIDSRLOG" >/dev/null 2>&1 ||
"$SLAPOS" node software --cfg "$SLAPOSCFG" --all --master-url="$MASTERURL" --logfile "$SLAPGRIDSRLOG" >/dev/null 2>&1 ||
(tail -n 200 "$SLAPGRIDSRLOG" && false)
contain_instance=0
for folder in $srv_directory/runner/instance/slappart*/; do
if [ -f "$folder/buildout.cfg" ]; then
contain_instance=1
fi
done
# If instance do not contains template.cfg it means the user contains no instance.
# so it is safer to assume that he is using slaprunner for develop buildout rather them slapos.
if [ $contain_instance -eq 0 ]; then
log_message "None Instance were deployed with this software release, so skip to continue..."
echo 0 > $RESTORE_EXIT_CODE_FILE
exit 0
fi
# Remove defined scripts to force buildout to recreate them to have updated paths
rm "$srv_directory"/runner/instance/slappart*/srv/runner-import-restore || true
log_message "Fixing Instances as needed after import..."
...
...
stack/erp5/buildout.cfg
View file @
a61a1add
...
...
@@ -551,6 +551,12 @@ eggs = ${neoppod:eggs}
# Used by ERP5 Jupyter backend
ipykernel
# Used by DiffTool
xmltodict
deepdiff
unidiff
jsonpickle
# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
...
...
@@ -768,3 +774,11 @@ sympy = 1.1.1
# Required by:
# openpyxl==2.4.8
jdcal = 1.3
xmltodict = 0.11.0
deepdiff = 3.3.0
unidiff = 0.5.5
# Required by:
# deepdiff = 3.3.0
jsonpickle = 0.9.6
stack/erp5/buildout.hash.cfg
View file @
a61a1add
...
...
@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[template]
filename = instance.cfg.in
md5sum =
995b5dd89253b79a9511e8b46e91480c
md5sum =
330b72acf0752cce5da70b1fcdfac487
[monitor-template-dummy]
filename = dummy.cfg
...
...
stack/erp5/instance.cfg.in
View file @
a61a1add
...
...
@@ -148,6 +148,20 @@ filename = instance-mariadb.cfg
extra-context =
section parameter_dict dynamic-template-mariadb-parameters
# Keep cloudooo section for backward compatibility
# Once the section is removed, ghost instances will keep failing until
# garbage collection be implemented.
[dynamic-template-cloudooo-legacy]
recipe = collective.recipe.template
input = inline:[buildout]
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
parts =
output = ${directory:directory/instance-cloudoo-legacy.cfg
mode = 644
# we need this value to be present in a section,
# for slapos.cookbook:switch-softwaretype to work
[dynamic-template-jupyter]
...
...
@@ -171,3 +185,6 @@ zodb-zeo = dynamic-template-zeo:rendered
zodb-neo = neo-storage-mysql:rendered
zope = dynamic-template-zope:rendered
jupyter = dynamic-template-jupyter:rendered
# Keep cloudooo backward compatibility
cloudooo = dynamic-template-cloudooo-legacy:output
stack/slapos.cfg
View file @
a61a1add
...
...
@@ -133,7 +133,7 @@ pytz = 2016.10
requests = 2.13.0
six = 1.10.0
slapos.cookbook = 1.0.66
slapos.core = 1.4.
7
slapos.core = 1.4.
8
slapos.extension.strip = 0.4
slapos.libnetworkcache = 0.15
slapos.rebootstrap = 4.1
...
...
@@ -145,7 +145,7 @@ xml-marshaller = 0.9.7
paramiko = 2.1.3
# Required by:
# slapos.core==1.4.
7
# slapos.core==1.4.
8
Flask = 0.12
# Required by:
...
...
@@ -165,7 +165,7 @@ ipaddress = 1.0.18
jsonschema = 2.6.0
# Required by:
# slapos.core==1.4.
7
# slapos.core==1.4.
8
# XXX 'slapos node format' raises an exception with netifaces 0.10.5.
netifaces = 0.10.4
...
...
@@ -178,15 +178,15 @@ packaging = 16.8
pycparser = 2.17
# Required by:
# slapos.core==1.4.
7
# slapos.core==1.4.
8
supervisor = 3.3.3
# Required by:
# slapos.core==1.4.
7
# slapos.core==1.4.
8
uritemplate = 3.0.0
# Required by:
# slapos.core==1.4.
7
# slapos.core==1.4.
8
zope.interface = 4.3.3
[networkcache]
...
...
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