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
Leo Le Bouter
slapos
Commits
1187909a
Commit
1187909a
authored
Jan 17, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
/reviewed-on
nexedi/slapos!270
parents
bd885546
a9c07db9
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
68 additions
and
30 deletions
+68
-30
component/gcc/buildout.cfg
component/gcc/buildout.cfg
+2
-1
component/golang/gowork-snapshot
component/golang/gowork-snapshot
+11
-4
component/h5py/buildout.cfg
component/h5py/buildout.cfg
+4
-1
component/libxml2/buildout.cfg
component/libxml2/buildout.cfg
+2
-2
component/libxslt/buildout.cfg
component/libxslt/buildout.cfg
+2
-4
component/mariadb/mariarocks.cfg
component/mariadb/mariarocks.cfg
+4
-2
component/rsync/buildout.cfg
component/rsync/buildout.cfg
+2
-2
slapos/recipe/librecipe/generic.py
slapos/recipe/librecipe/generic.py
+7
-1
software/cloudooo/buildout.hash.cfg
software/cloudooo/buildout.hash.cfg
+22
-0
software/cloudooo/instance-cloudooo.cfg.in
software/cloudooo/instance-cloudooo.cfg.in
+5
-6
software/cloudooo/instance.cfg.in
software/cloudooo/instance.cfg.in
+1
-0
software/cloudooo/software-common.cfg
software/cloudooo/software-common.cfg
+3
-4
software/powerdns/instance-powerdns-replicate.cfg.jinja2
software/powerdns/instance-powerdns-replicate.cfg.jinja2
+2
-2
software/powerdns/software.cfg
software/powerdns/software.cfg
+1
-1
No files found.
component/gcc/buildout.cfg
View file @
1187909a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
# Mostly required to support languages different than C or C++
# Mostly required to support languages different than C or C++
[buildout]
[buildout]
extends =
extends =
../gettext/buildout.cfg
../gmp/buildout.cfg
../gmp/buildout.cfg
../perl/buildout.cfg
../perl/buildout.cfg
../tar/buildout.cfg
../tar/buildout.cfg
...
@@ -32,7 +33,7 @@ configure-options =
...
@@ -32,7 +33,7 @@ configure-options =
--with-as=${binutils:location}/bin/as
--with-as=${binutils:location}/bin/as
environment =
environment =
LDFLAGS=-Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${isl:location}/lib -Wl,-rpath=${mpc:location}/lib -Wl,-rpath=${mpfr:location}/lib
LDFLAGS=-Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${isl:location}/lib -Wl,-rpath=${mpc:location}/lib -Wl,-rpath=${mpfr:location}/lib
PATH=${binutils:location}/bin:${perl:location}/bin:${tar:location}/bin:%(PATH)s
PATH=${binutils:location}/bin:${
gettext:location}/bin:${
perl:location}/bin:${tar:location}/bin:%(PATH)s
[gcc-minimal]
[gcc-minimal]
<= gcc-common
<= gcc-common
...
...
component/golang/gowork-snapshot
View file @
1187909a
...
@@ -25,9 +25,16 @@ gogit_list() {
...
@@ -25,9 +25,16 @@ gogit_list() {
# git_upstream_url <repo> - show current branch upstream URL
# git_upstream_url <repo> - show current branch upstream URL
git_upstream_url
()
{
git_upstream_url
()
{
repo
=
$1
repo
=
$1
head
=
"
`
git
-C
$repo
symbolic-ref
--short
HEAD
`
"
# current branch - e.g. "t"
head
=
"
`
git
-C
$repo
symbolic-ref
-q
--short
HEAD
`
"
# current branch - e.g. "master"
remote
=
"
`
git
-C
$repo
config
--get
branch.
$head
.remote
`
"
# upstream name, e.g. "kirr"
if
[
-z
$head
]
;
then
url
=
"
`
git
-C
$repo
config
--get
remote.
$remote
.url
`
"
# upstream URL
remote
=
"origin"
# If we are in detached HEAD, assume the upstream name is origin
else
remote
=
"
`
git
-C
$repo
config
--get
branch.
$head
.remote
`
"
# upstream name, e.g. "origin"
fi
url
=
"
`
git
-C
$repo
config
--get
remote.
$remote
.url
`
"
# upstream URL
if
[
-z
$url
]
;
then
echo
"ERROR: Failed to guess upstream url from
$repo
"
1>&2
fi
echo
"
$url
"
echo
"
$url
"
}
}
...
@@ -59,5 +66,5 @@ while read pkg url rev; do
...
@@ -59,5 +66,5 @@ while read pkg url rev; do
echo
"<= go-git-package"
echo
"<= go-git-package"
echo
"go.importpath =
$pkg
"
echo
"go.importpath =
$pkg
"
echo
"repository =
$url
"
echo
"repository =
$url
"
echo
"revision =
$rev
"
echo
"revision
=
$rev
"
done
done
component/h5py/buildout.cfg
View file @
1187909a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
extends =
extends =
../hdf5/buildout.cfg
../hdf5/buildout.cfg
../cython/buildout.cfg
../cython/buildout.cfg
../numpy/buildout.cfg
parts =
parts =
h5py
h5py
...
@@ -12,7 +13,9 @@ CPPFLAGS = -I${hdf5:location}/include
...
@@ -12,7 +13,9 @@ CPPFLAGS = -I${hdf5:location}/include
[h5py]
[h5py]
recipe = zc.recipe.egg:custom
recipe = zc.recipe.egg:custom
egg = h5py
egg = h5py
setup-eggs = ${cython:egg}
setup-eggs =
${cython:egg}
${numpy:egg}
include-dirs =
include-dirs =
${hdf5:location}/include
${hdf5:location}/include
library-dirs =
library-dirs =
...
...
component/libxml2/buildout.cfg
View file @
1187909a
...
@@ -11,8 +11,8 @@ parts =
...
@@ -11,8 +11,8 @@ parts =
[libxml2]
[libxml2]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
url = http://xmlsoft.org/sources/libxml2-2.9.
5
.tar.gz
url = http://xmlsoft.org/sources/libxml2-2.9.
7
.tar.gz
md5sum =
5ce0da9bdaa267b40c4ca36d35363b8b
md5sum =
896608641a08b465098a40ddf51cefba
configure-options =
configure-options =
--disable-static
--disable-static
--without-python
--without-python
...
...
component/libxslt/buildout.cfg
View file @
1187909a
...
@@ -7,8 +7,8 @@ parts =
...
@@ -7,8 +7,8 @@ parts =
libxslt
libxslt
[libxslt]
[libxslt]
url = ftp://xmlsoft.org/libxslt/libxslt-1.1.3
0
.tar.gz
url = ftp://xmlsoft.org/libxslt/libxslt-1.1.3
2
.tar.gz
md5sum =
70becbbcb1dad55f14de0b84171b91d5
md5sum =
1fc72f98e98bf4443f1651165f3aa146
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
configure-options =
configure-options =
--disable-static
--disable-static
...
@@ -20,5 +20,3 @@ configure-options =
...
@@ -20,5 +20,3 @@ configure-options =
environment =
environment =
CPPFLAGS=-I${zlib:location}/include
CPPFLAGS=-I${zlib:location}/include
LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
LIBXML_CFLAGS=-I${libxml2:location}/include
LIBXML_LIBS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib
component/mariadb/mariarocks.cfg
View file @
1187909a
# Do not extend any file that touch buildout:parts.
# Do not extend any file that touch buildout:parts.
[mariadb]
[mariadb]
version = 10.2.1
2
version = 10.2.1
1
md5sum =
c5bce588e3c53ebc417e37ecb0967aee
md5sum =
954088299fe5f11b4fda3b540558adbd
stable-patches =
stable-patches =
configure-options +=
configure-options +=
# force build of TokuDB due to a regression in 10.2.11
-DTOKUDB_OK=1
-DCMAKE_C_COMPILER=${gcc:location}/bin/gcc
-DCMAKE_C_COMPILER=${gcc:location}/bin/gcc
-DCMAKE_CXX_COMPILER=${gcc:location}/bin/g++
-DCMAKE_CXX_COMPILER=${gcc:location}/bin/g++
extra_cflags = -I${zstd:location}/include
extra_cflags = -I${zstd:location}/include
...
...
component/rsync/buildout.cfg
View file @
1187909a
...
@@ -7,8 +7,8 @@ parts =
...
@@ -7,8 +7,8 @@ parts =
[rsync]
[rsync]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
url = http
://rsync.samba.org/ftp/rsync/src/rsync-3.1.1
.tar.gz
url = http
s://download.samba.org/pub/rsync/rsync-3.1.2
.tar.gz
md5sum =
43bd6676f0b404326eee2d63be3cdcfe
md5sum =
0f758d7e000c0f7f7d3792610fad70cb
make-options =
make-options =
PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
environment =
environment =
...
...
slapos/recipe/librecipe/generic.py
View file @
1187909a
...
@@ -61,7 +61,13 @@ class GenericBaseRecipe(object):
...
@@ -61,7 +61,13 @@ class GenericBaseRecipe(object):
self
.
_options
(
options
)
# Options Hook
self
.
_options
(
options
)
# Options Hook
self
.
options
=
options
.
copy
()
# Updated options dict
self
.
options
=
options
.
copy
()
# Updated options dict
self
.
_ws
=
self
.
getWorkingSet
()
@
property
def
_ws
(
self
):
# getWorkingSet() is slow and it is not always needed.
# So _ws should be a lazy attribute.
if
getattr
(
self
,
'__ws'
,
None
)
is
None
:
self
.
__ws
=
self
.
getWorkingSet
()
return
self
.
__ws
def
update
(
self
):
def
update
(
self
):
"""By default update method does the same thing than install"""
"""By default update method does the same thing than install"""
...
...
software/cloudooo/buildout.hash.cfg
0 → 100644
View file @
1187909a
# 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-cloudooo]
filename = instance.cfg.in
md5sum = 6e4431cf4b0a0d034402604b1e2844c0
[template-cloudooo-instance]
filename = instance-cloudooo.cfg.in
md5sum = afbfed1d762e5cdf7c6fd1292e7b28e7
software/cloudooo/instance-cloudooo.cfg.in
View file @
1187909a
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
{% set next_port = slapparameter_dict.get(instance_parameter_dict['port-parameter-name'], next_port) | int -%}
{% set next_port = slapparameter_dict.get(instance_parameter_dict['port-parameter-name'], next_port) | int -%}
{% endif -%}
{% endif -%}
{% do assert(next_port > 0) -%}
{% do assert(next_port > 0) -%}
{% set next_port = itertools.count(next_port).next -%}
{% set backend_count = instance_parameter_dict['backend-count'] | int -%}
{% set backend_count = instance_parameter_dict['backend-count'] | int -%}
{% if instance_parameter_dict.get('backend-count-parameter-name') -%}
{% if instance_parameter_dict.get('backend-count-parameter-name') -%}
...
@@ -33,9 +34,8 @@
...
@@ -33,9 +34,8 @@
{% set mimetype_entry_addition = mimetype_entry_addition ~ "\n" ~ slapparameter_dict.get(instance_parameter_dict['mimetype-entry-addition-parameter-name'], '') -%}
{% set mimetype_entry_addition = mimetype_entry_addition ~ "\n" ~ slapparameter_dict.get(instance_parameter_dict['mimetype-entry-addition-parameter-name'], '') -%}
{% endif -%}
{% endif -%}
{% set apache_port = next_port -%}
{% set apache_port = next_port() -%}
{% set haproxy_port = next_port + 1 -%}
{% set haproxy_port = next_port() -%}
{% set next_port = next_port + 2 -%}
{% set apache_ip_list = [ipv4] -%}
{% set apache_ip_list = [ipv4] -%}
{% if ipv6_set -%}
{% if ipv6_set -%}
...
@@ -184,13 +184,12 @@ ooo-uno-path = {{ parameter_dict['libreoffice-bin'] }}/basis-link/program
...
@@ -184,13 +184,12 @@ ooo-uno-path = {{ parameter_dict['libreoffice-bin'] }}/basis-link/program
{% set name = 'cloudooo-' ~ index -%}
{% set name = 'cloudooo-' ~ index -%}
[{{ cloudooo(name) }}]
[{{ cloudooo(name) }}]
< = cloudooo-base
< = cloudooo-base
port = {{ next_port }}
port = {{ next_port
()
}}
openoffice-port = {{ next_port
+ 1
}}
openoffice-port = {{ next_port
()
}}
configuration-file = ${directory:etc}/{{ name }}.cfg
configuration-file = ${directory:etc}/{{ name }}.cfg
data-directory = ${directory:srv}/{{ name }}
data-directory = ${directory:srv}/{{ name }}
wrapper = ${directory:services}/{{ name }}
wrapper = ${directory:services}/{{ name }}
{% set next_port = next_port + 2 -%}
{% endfor -%}
{% endfor -%}
[haproxy]
[haproxy]
...
...
software/cloudooo/instance.cfg.in
View file @
1187909a
...
@@ -39,6 +39,7 @@ extensions = jinja2.ext.do
...
@@ -39,6 +39,7 @@ extensions = jinja2.ext.do
extra-context =
extra-context =
section parameter_dict cloudooo-dynamic-template-parameter-dict
section parameter_dict cloudooo-dynamic-template-parameter-dict
key ipv4_set slap-parameters:ipv4
key ipv4_set slap-parameters:ipv4
import itertools itertools
[switch-softwaretype]
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:softwaretype
...
...
software/cloudooo/software-common.cfg
View file @
1187909a
[buildout]
[buildout]
extends =
extends =
buildout.hash.cfg
../../stack/cloudooo.cfg
../../stack/cloudooo.cfg
../../stack/logrotate/buildout.cfg
../../stack/logrotate/buildout.cfg
parts =
parts =
...
@@ -25,8 +26,7 @@ cert = ${slap-connection:cert-file}
...
@@ -25,8 +26,7 @@ cert = ${slap-connection:cert-file}
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
# XXX: "template.cfg" is hardcoded in instanciation recipe
rendered = ${buildout:directory}/template.cfg
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/instance.cfg.in
template = ${:_profile_base_location_}/${:filename}
md5sum = 4543e62c41726ef074454252c4951ac8
mode = 640
mode = 640
[template-cloudooo-base]
[template-cloudooo-base]
...
@@ -81,6 +81,5 @@ template-logrotate-base = ${template-logrotate-base:rendered}
...
@@ -81,6 +81,5 @@ template-logrotate-base = ${template-logrotate-base:rendered}
[template-cloudooo-instance]
[template-cloudooo-instance]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-cloudooo.cfg.in
url = ${:_profile_base_location_}/${:filename}
md5sum = 045830db85e1200f765788aa8b62289e
mode = 640
mode = 640
software/powerdns/instance-powerdns-replicate.cfg.jinja2
View file @
1187909a
...
@@ -81,7 +81,7 @@ username = admin
...
@@ -81,7 +81,7 @@ username = admin
[monitor-instance-parameter]
[monitor-instance-parameter]
monitor-httpd-port = 8099
monitor-httpd-port = 8099
cors-domains = {{ slapparameter_dict.get('monitor-cors-domains', 'monitor.app.officejs.com') }}
cors-domains = {{ slapparameter_dict.get('monitor-cors-domains', 'monitor.app.officejs.com') }}
username =
${monitor-instance-parameter:username}
username =
admin
password = ${monitor-htpasswd:passwd}
password = ${monitor-htpasswd:passwd}
[monitor-conf-parameters]
[monitor-conf-parameters]
...
@@ -109,7 +109,7 @@ config-{{parameter}} = {{ value }}
...
@@ -109,7 +109,7 @@ config-{{parameter}} = {{ value }}
{% endfor -%}
{% endfor -%}
config-{{ slave_list_name }} = {{ json_module.dumps(slave_instance_list) }}
config-{{ slave_list_name }} = {{ json_module.dumps(slave_instance_list) }}
config-monitor-cors-domains = {{ slapparameter_dict.get('monitor-cors-domains', 'monitor.node.vifib.com') }}
config-monitor-cors-domains = {{ slapparameter_dict.get('monitor-cors-domains', 'monitor.node.vifib.com') }}
config-monitor-username =
${monitor-instance-parameter:username}
config-monitor-username =
admin
config-monitor-password = ${monitor-htpasswd:passwd}
config-monitor-password = ${monitor-htpasswd:passwd}
[publish-information]
[publish-information]
...
...
software/powerdns/software.cfg
View file @
1187909a
...
@@ -38,7 +38,7 @@ mode = 640
...
@@ -38,7 +38,7 @@ mode = 640
[template-dns-replicate]
[template-dns-replicate]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-powerdns-replicate.cfg.jinja2
url = ${:_profile_base_location_}/instance-powerdns-replicate.cfg.jinja2
md5sum =
3699d0751632e0c11b466342789e27a3
md5sum =
46acd4ed071df8d7139dcd0434be42eb
mode = 0644
mode = 0644
[iso-list]
[iso-list]
...
...
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