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
Aurel
slapos
Commits
095d9a30
Commit
095d9a30
authored
Mar 21, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re6stnet: clean-up
parent
83f5929e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
55 deletions
+16
-55
software/re6stnet/buildout.hash.cfg
software/re6stnet/buildout.hash.cfg
+2
-10
software/re6stnet/instance-re6stnet.cfg.in
software/re6stnet/instance-re6stnet.cfg.in
+14
-19
software/re6stnet/instance.cfg.in
software/re6stnet/instance.cfg.in
+0
-5
software/re6stnet/registry-run.in
software/re6stnet/registry-run.in
+0
-4
software/re6stnet/software.cfg
software/re6stnet/software.cfg
+0
-14
software/re6stnet/wrapper.in
software/re6stnet/wrapper.in
+0
-3
No files found.
software/re6stnet/buildout.hash.cfg
View file @
095d9a30
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
# not need these here).
# not need these here).
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
610fc6fd0444d3bab3fca4478572749a
md5sum =
eea691b0919812b9717f17005f06681d
[template-re6stnet]
[template-re6stnet]
filename = instance-re6stnet.cfg.in
filename = instance-re6stnet.cfg.in
md5sum =
002f7405f565c82219b0d4b92790ff8c
md5sum =
7074948c958220e39a44f2c6cb56a0bb
[template-apache-conf]
[template-apache-conf]
filename = apache.conf.in
filename = apache.conf.in
...
@@ -27,11 +27,3 @@ md5sum = 2ed3c4e9b9d58d2e57cda227bdd454d2
...
@@ -27,11 +27,3 @@ md5sum = 2ed3c4e9b9d58d2e57cda227bdd454d2
[template-re6st-registry-conf]
[template-re6st-registry-conf]
filename = re6st-registry.conf.in
filename = re6st-registry.conf.in
md5sum = b0f0facfea82a4481f4fb5b0b263e09a
md5sum = b0f0facfea82a4481f4fb5b0b263e09a
[template-wrapper]
filename = wrapper.in
md5sum = 7633bdfc0e638ff9979f963fbbca8f13
[template-registry-run]
filename = registry-run.in
md5sum = 0bf4f2c03e06b55c6c6cc55fa33e65d6
software/re6stnet/instance-re6stnet.cfg.in
View file @
095d9a30
{% set bin_directory = parameter_dict['bin-directory'] -%}
{% set python_bin = parameter_dict['python-executable'] -%}
{% set python_bin = parameter_dict['python-executable'] -%}
{% set re6st_registry = parameter_dict['re6st-registry'] -%}
{% set re6stnet = parameter_dict['re6stnet'] -%}
{% set publish_dict = {} -%}
{% set publish_dict = {} -%}
{% set part_list = [] -%}
{% set part_list = [] -%}
{% set ipv6 = (ipv6_set | list)[0] -%}
{% set ipv6 = (ipv6_set | list)[0] -%}
...
@@ -96,18 +94,19 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
...
@@ -96,18 +94,19 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
[apache-httpd-graceful]
[apache-httpd-graceful]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = {{ parameter_dict['template-wrapper'] }}
rendered = ${directory:script}/httpd-graceful
rendered = ${directory:script}/httpd-graceful
mode = 0700
template = inline:{{'{{content}}'}}
context =
context = key content :script
raw content {{ parameter_dict['apache-location'] }}/bin/httpd -Sf ${apache-conf:rendered}; if [ $? -eq 0 ]; then kill -USR1 $(cat ${apache-conf:pid-file}); fi
script =
raw dash {{ dash_binary }}
#!/bin/sh -e
{{ parameter_dict['apache-location'] }}/bin/httpd -Sf ${apache-conf:rendered}
{{ bin_directory }}/slapos-kill --pidfile ${apache-conf:pid-file} -s USR1
[logrotate-apache]
[logrotate-apache]
< = logrotate-entry-base
< = logrotate-entry-base
name = apache
name = apache
log = ${apache-conf:error-log} ${apache-conf:access-log}
log = ${apache-conf:error-log} ${apache-conf:access-log}
post = test ! -s ${apache-conf:pid-file} || {{
parameter_dict['bin-directory']
}}/slapos-kill --pidfile ${apache-conf:pid-file} -s USR1
post = test ! -s ${apache-conf:pid-file} || {{
bin_directory
}}/slapos-kill --pidfile ${apache-conf:pid-file} -s USR1
[re6st-registry-conf-dict]
[re6st-registry-conf-dict]
port = 9201
port = 9201
...
@@ -139,14 +138,10 @@ rendered = ${directory:etc}/re6st-registry.conf
...
@@ -139,14 +138,10 @@ rendered = ${directory:etc}/re6st-registry.conf
context = section parameter_dict re6st-registry-conf-dict
context = section parameter_dict re6st-registry-conf-dict
[re6st-registry-wrapper]
[re6st-registry-wrapper]
recipe = slapos.recipe.template:jinja2
recipe = slapos.cookbook:wrapper
template = {{ parameter_dict['template-registry-run'] }}
wrapper-path = ${directory:services}/re6st-registry
rendered = ${directory:services}/re6st-registry
pidfile = ${directory:run}/registry.pid
pid-file = ${directory:run}/registry.pid
command-line = {{ bin_directory }}/re6st-registry @${re6st-registry-conf:rendered}
context =
key pid_file :pid-file
raw re6st_command {{ re6st_registry }}
key re6st_conf re6st-registry-conf:rendered
[re6st-registry]
[re6st-registry]
recipe = slapos.cookbook:re6stnet.registry
recipe = slapos.cookbook:re6stnet.registry
...
@@ -181,14 +176,14 @@ command-line = "{{ python_bin }}" ${re6st-registry:manager-wrapper}
...
@@ -181,14 +176,14 @@ command-line = "{{ python_bin }}" ${re6st-registry:manager-wrapper}
recipe = slapos.cookbook:cron.d
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
cron-entries = ${cron:cron-entries}
name = re6stnet-check-token
name = re6stnet-check-token
frequency = */5 * * * *
time = *:0/5
command = {{ python_bin }} ${re6st-registry:manager-wrapper}
command = {{ python_bin }} ${re6st-registry:manager-wrapper}
[logrotate-entry-re6stnet]
[logrotate-entry-re6stnet]
< = logrotate-entry-base
< = logrotate-entry-base
name = re6stnet
name = re6stnet
log = ${re6st-registry-conf-dict:logfile}
log = ${re6st-registry-conf-dict:logfile}
post =
test ! -s ${re6st-registry-wrapper:pid-file} || {{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${re6st-registry-wrapper:pid-
file} -s USR1
post =
[ ! -s ${re6st-registry-wrapper:pidfile} ] || {{ bin_directory }}/slapos-kill --pidfile ${re6st-registry-wrapper:pid
file} -s USR1
[port-redirection]
[port-redirection]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/re6stnet/instance.cfg.in
View file @
095d9a30
...
@@ -23,20 +23,15 @@ context =
...
@@ -23,20 +23,15 @@ context =
key slapparameter_dict slap-configuration:configuration
key slapparameter_dict slap-configuration:configuration
key computer_id slap-configuration:computer
key computer_id slap-configuration:computer
raw logrotate_cfg {{ template_logrotate_base }}
raw logrotate_cfg {{ template_logrotate_base }}
raw dash_binary {{ dash_location }}/bin/dash
raw openssl_bin {{ openssl_location}}/bin
raw openssl_bin {{ openssl_location}}/bin
${:extra-context}
${:extra-context}
[dynamic-template-re6stnet-parameters]
[dynamic-template-re6stnet-parameters]
bin-directory = {{ bin_directory }}
bin-directory = {{ bin_directory }}
python-executable = {{ python_with_eggs }}
python-executable = {{ python_with_eggs }}
re6st-registry = {{ bin_directory }}/re6st-registry
re6stnet = {{ bin_directory }}/re6stnet
template-apache-conf = {{ template_apache_conf }}
template-apache-conf = {{ template_apache_conf }}
template-wrapper = {{ template_wrapper }}
apache-location = {{ apache_location }}
apache-location = {{ apache_location }}
template-re6st-registry-conf = {{ template_re6st_registry_conf }}
template-re6st-registry-conf = {{ template_re6st_registry_conf }}
template-registry-run = {{ template_registry_run }}
[dynamic-template-re6stnet]
[dynamic-template-re6stnet]
< = jinja2-template-base
< = jinja2-template-base
...
...
software/re6stnet/registry-run.in
deleted
100644 → 0
View file @
83f5929e
#!/bin/bash
echo
$$
>
{{
pid_file
}}
exec
{{
re6st_command
}}
@
{{
re6st_conf
}}
software/re6stnet/software.cfg
View file @
095d9a30
...
@@ -2,13 +2,9 @@
...
@@ -2,13 +2,9 @@
extends =
extends =
buildout.hash.cfg
buildout.hash.cfg
../../component/dash/buildout.cfg
../../component/dcron/buildout.cfg
../../component/gzip/buildout.cfg
../../component/openssl/buildout.cfg
../../component/openssl/buildout.cfg
../../component/logrotate/buildout.cfg
../../component/logrotate/buildout.cfg
../../component/apache/buildout.cfg
../../component/apache/buildout.cfg
../../component/pycurl/buildout.cfg
../../component/python-cryptography/buildout.cfg
../../component/python-cryptography/buildout.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
...
@@ -17,7 +13,6 @@ extends =
...
@@ -17,7 +13,6 @@ extends =
parts +=
parts +=
slapos-cookbook
slapos-cookbook
dash
template
template
[re6st-eggs]
[re6st-eggs]
...
@@ -43,15 +38,12 @@ context =
...
@@ -43,15 +38,12 @@ context =
key develop_eggs_directory buildout:develop-eggs-directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key eggs_directory buildout:eggs-directory
key apache_location apache:location
key apache_location apache:location
key dash_location dash:location
key logrotate_location logrotate:location
key logrotate_location logrotate:location
key openssl_location openssl:location
key openssl_location openssl:location
key template_apache_conf template-apache-conf:target
key template_apache_conf template-apache-conf:target
key template_re6stnet template-re6stnet:target
key template_re6stnet template-re6stnet:target
key template_re6st_registry_conf template-re6st-registry-conf:target
key template_re6st_registry_conf template-re6st-registry-conf:target
key template_logrotate_base template-logrotate-base:rendered
key template_logrotate_base template-logrotate-base:rendered
key template_wrapper template-wrapper:target
key template_registry_run template-registry-run:target
key monitor2_template_rendered monitor2-template:rendered
key monitor2_template_rendered monitor2-template:rendered
raw python_with_eggs ${buildout:bin-directory}/${re6st-eggs:interpreter}
raw python_with_eggs ${buildout:bin-directory}/${re6st-eggs:interpreter}
...
@@ -64,12 +56,6 @@ context =
...
@@ -64,12 +56,6 @@ context =
[template-re6st-registry-conf]
[template-re6st-registry-conf]
< = download-base
< = download-base
[template-wrapper]
< = download-base
[template-registry-run]
< = download-base
[versions]
[versions]
re6stnet = 0.551
re6stnet = 0.551
...
...
software/re6stnet/wrapper.in
deleted
100644 → 0
View file @
83f5929e
#!{{ dash }}
{{ content }}
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