- 06 Sep, 2018 18 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
Instead of relying on slapos.cookbook:certificate_authority recipe, which stops buildout processing, extract the minimal implementation to runtime key/certificate validator and reject slaves, which does not pass this test. This commits results in TODO item being done.
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
As slave requester is able to enter any string in server-alias validate it against being correct domain name and in case if validation fails reject that slave. Also use a trick to have access to global slave state, see https://fabianlee.org/2016/10/18/saltstack-setting-a-jinja2-variable-from-an-inner-block-scope/
-
Łukasz Nowak authored
Install validators dependency, which is a way to easily check if email is an email or domain is correct. As slave requester is able to enter any string in custom domain validate it against being correct domain name and in case if validation fails reject that slave.
-
Łukasz Nowak authored
Create caddyprofiledeps egg with dummy noop recipe. Thanks to setting dependencies of this egg and enabling it on the instance profile, buildout will install eggs during software run and activate them during instance run. No existing egg (like slapos.cookbook) is used, as this technique is to allow profile/software release developer to choose required eggs used during instantiation. Another apporach would be to add dependency for validators in slapos.recipe.template (in install_requires).
-
Łukasz Nowak authored
Thank to escaping whole command-line it is possible to process buildout dangerous strings, like ${section:option}, pass them to the wrapper, instead of killing the whole profile processing.
-
Łukasz Nowak authored
If the value does not contain "," drop its contents instead of stopping processing of the whole profile.
-
Łukasz Nowak authored
Instead of needlessly storing information in configuration section, pass it via jinja2 parameter. This is safe, in case if extra_slave_instance_list would contain value like ${section:option}.
-
Kazuhiko Shiozaki authored
-
Julien Muchembled authored
Mainly to fix parallel build.
-
Xiaowu Zhang authored
-
Xiaowu Zhang authored
-
Łukasz Nowak authored
There is a way to pass monitor port to each replicated frontend by using frontend-config-N-monitor-httpd-port, thus there is no need to pass through the default value, as it comes default on each replicated slave.
-
Łukasz Nowak authored
-
- 05 Sep, 2018 8 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Guillaume Hervier authored
-
Guillaume Hervier authored
-
Jérome Perrin authored
I noticed by accident that tests for `software/wendelin/software-dev.cfg` where failing because buildout was picking eggs: ``` Installing eggs. While: Installing eggs. Getting distribution for 'scikit-learn'. Error: Picked: scikit-learn = 0.19.2 Failed to run buildout profile in directory '/srv/slapgrid/slappart7/srv/testnode/acv/soft/78ae8a6d8b0639addb22de2c7c96af63' ``` Turned out it was a problem with usage of `zc.recipe.egg:develop` There was also a problem which `${gcc-fortran:}` that does not exist anymore. /reviewed-on nexedi/slapos!395
-
Jérome Perrin authored
Turned out we are not ready to apply the part about storing wrappers in ${bin:directory} from "Firefox: install wrappers in ${buildout:bin-directory} and version up" This commit is to be reverted once we update test nodes to 1.0.73 or higher
-
Jérome Perrin authored
-
Jérome Perrin authored
Slapos compatible wrapper is no longer installed in `parts/firefox/firefox-slapos` , but directly as `firefox` in the `${buildout:bin-directory}` of the software. `geckodriver` is also in the same directory. Firefox version up to 52.9.0esr Geckodriver version up to 0.17.0 /reviewed-on nexedi/slapos!387
-
- 04 Sep, 2018 3 commits
-
-
Jérome Perrin authored
:develop is a bit special in that it does not install the egg, but just tell buildout that this directory contain the egg, so that recipes that will install this egg later will pick the develop-eggs.
-
Rafael Monnerat authored
Allow the KVM software release request a disk via plugin, if the plugin is enabled the chown will be set to give the disk to the partition.
-
Łukasz Nowak authored
-
- 03 Sep, 2018 11 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
Not released yet functionality for regular expression cookie rewriting is available: https://github.com/mholt/caddy/pull/2144
-
Łukasz Nowak authored
-
Łukasz Nowak authored
Add plugin assertions in TestSlave.test_master_partition_state and drop check-free-disk-space from promise directory.
-
Guillaume Hervier authored
/reviewed-on nexedi/slapos!380
-
Jérome Perrin authored
Introduce a simple tool to format JSON for software instance definitions. This tool is inspired by `python -m json.tool`, but has the following differences: * keep the order of keys instead of sorting alphabetically (because we sometimes put the most important options at the top) * indent with 2 spaces Run the tool on all the repository and commit the changes, with this command: ``` for x in $(find . -name '*.json') ; do echo $x; ./format-json $x $x; done ``` /reviewed-on nexedi/slapos!392
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Łukasz Nowak authored
As check-free-disk-space promise is implemented in plugin directory, add it to list of assertions and drop it from promise list assertions. Also already existing monitoring plugins are asserted.
-
Jérome Perrin authored
Before we move this code to a more suitable place, start by agreeing with small differences in the implementation. This takes all the nice changes from caddy-frontend/tests/ but not what was specific to caddy or to testing slave instances. /reviewed-on !389
-