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
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
05800615
Commit
05800615
authored
Dec 14, 2022
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
e97e6a2a
e752779e
Pipeline
#25345
failed with stage
in 0 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
9 deletions
+46
-9
component/fluentbit-plugin-wendelin/obs.cfg
component/fluentbit-plugin-wendelin/obs.cfg
+4
-0
setup.py
setup.py
+3
-1
slapos/recipe/publish.py
slapos/recipe/publish.py
+29
-1
software/html5as/buildout.hash.cfg
software/html5as/buildout.hash.cfg
+1
-1
software/html5as/instance_html5as.cfg.in
software/html5as/instance_html5as.cfg.in
+1
-1
software/metabase/buildout.hash.cfg
software/metabase/buildout.hash.cfg
+1
-1
software/mosquitto/buildout.hash.cfg
software/mosquitto/buildout.hash.cfg
+1
-1
software/mosquitto/instance.cfg.in
software/mosquitto/instance.cfg.in
+5
-2
software/peertube/instance-peertube-input-schema.json
software/peertube/instance-peertube-input-schema.json
+1
-1
No files found.
component/fluentbit-plugin-wendelin/obs.cfg
View file @
05800615
...
...
@@ -17,6 +17,10 @@ extends =
parts =
fluentbit-plugin-wendelin
[fluentbit-plugin-wendelin]
url = https://lab.nexedi.com/nexedi/fluentbit-plugin-wendelin/-/archive/0.3.1/fluentbit-plugin-wendelin-0.3.1.tar.gz
md5sum = 7bafdcbeb2bf9634e041fde95b63b51f
[golang1.17]
# Using "./make.bash" instead of "./all.bash" disables golang tests. Some of these tests attempt to use the network, which fails on OBS' VM.
# A less radical way to fix the issue may be investigated in the future.
...
...
setup.py
View file @
05800615
...
...
@@ -28,7 +28,7 @@ from setuptools import setup, find_packages
import
glob
import
os
version
=
'1.0.29
1
'
version
=
'1.0.29
7
'
name
=
'slapos.cookbook'
long_description
=
open
(
"README.rst"
).
read
()
...
...
@@ -131,6 +131,8 @@ setup(name=name,
'publish-early = slapos.recipe.publish_early:Recipe'
,
'publishsection = slapos.recipe.publish:PublishSection'
,
'publishurl = slapos.recipe.publishurl:Recipe'
,
'publish_failsafe = slapos.recipe.publish:RecipeFailsafe'
,
'publish.serialised_failsafe = slapos.recipe.publish:SerialisedFailsafe'
,
'random.time = slapos.recipe.random:Time'
,
'random.integer = slapos.recipe.random:Integer'
,
'readline = slapos.recipe.readline:Recipe'
,
...
...
slapos/recipe/publish.py
View file @
05800615
...
...
@@ -29,10 +29,12 @@ import zc.buildout
from
slapos.recipe.librecipe
import
wrap
from
slapos.recipe.librecipe
import
GenericSlapRecipe
import
six
import
os
CONNECTION_PARAMETER_STRING
=
'connection-'
class
Recipe
(
GenericSlapRecipe
):
return_list
=
[]
def
__init__
(
self
,
buildout
,
name
,
options
):
super
(
Recipe
,
self
).
__init__
(
buildout
,
name
,
options
)
# Tell buildout about the sections we will access during install.
...
...
@@ -55,7 +57,7 @@ class Recipe(GenericSlapRecipe):
for
k
in
publish
:
publish_dict
[
k
]
=
section
[
k
]
self
.
_setConnectionDict
(
publish_dict
,
self
.
options
.
get
(
'-slave-reference'
))
return
[]
return
self
.
return_list
def
_setConnectionDict
(
self
,
publish_dict
,
slave_reference
=
None
):
return
self
.
setConnectionDict
(
publish_dict
,
slave_reference
)
...
...
@@ -65,6 +67,32 @@ class Serialised(Recipe):
return
super
(
Serialised
,
self
).
_setConnectionDict
(
wrap
(
publish_dict
),
slave_reference
)
class
Failsafe
(
object
):
def
_setConnectionDict
(
self
,
publish_dict
,
slave_reference
):
error_status_file
=
self
.
options
.
get
(
'-error-status-file'
)
if
error_status_file
:
self
.
return_list
=
[
error_status_file
]
else
:
self
.
return_list
=
[]
try
:
super
(
Failsafe
,
self
).
_setConnectionDict
(
publish_dict
,
slave_reference
)
except
Exception
:
if
error_status_file
is
not
None
:
with
open
(
error_status_file
,
'w'
)
as
fh
:
fh
.
write
(
''
)
else
:
if
error_status_file
is
not
None
:
if
os
.
path
.
exists
(
error_status_file
):
os
.
unlink
(
error_status_file
)
class
RecipeFailsafe
(
Failsafe
,
Recipe
):
pass
class
SerialisedFailsafe
(
Failsafe
,
Serialised
):
pass
class
PublishSection
(
GenericSlapRecipe
):
"""
...
...
software/html5as/buildout.hash.cfg
View file @
05800615
...
...
@@ -21,7 +21,7 @@ md5sum = 23c15a579b66cef866b30a2f53b1b737
[instance_html5as]
_update_hash_filename_ = instance_html5as.cfg.in
md5sum =
0b16e9a2cac16668e100687f19430b1e
md5sum =
d1b5747c064a752d7a6b09060604aa0a
[template_nginx_conf]
_update_hash_filename_ = templates/nginx_conf.in
...
...
software/html5as/instance_html5as.cfg.in
View file @
05800615
...
...
@@ -142,7 +142,7 @@ recipe = slapos.recipe.build
# it will be automatically removed at the beginning of "install".
location = ${directory:srv}/html5as
# All the keys in this section will be available as a dict called "self.options"
archive = {{ '${downloader:
destination
}' if parameter_dict['download_url'] else '' }}
archive = {{ '${downloader:
target
}' if parameter_dict['download_url'] else '' }}
default_index_html = ${default_index_html:output}
# If a tarball is passed as a parameter in download url
# it's content will be served by the instance.
...
...
software/metabase/buildout.hash.cfg
View file @
05800615
[instance-profile]
filename = instance.cfg.in
md5sum =
a0a375dcd29a21ef121931f40e5e6d51
md5sum =
e0f4847f08e0062ea5a6ba492318afc7
software/mosquitto/buildout.hash.cfg
View file @
05800615
[instance-profile]
filename = instance.cfg.in
md5sum =
4c7aa7b2132dc13ddee37fb416decf81
md5sum =
a6061e8bea111d96c10223f9b201ecc0
software/mosquitto/instance.cfg.in
View file @
05800615
...
...
@@ -84,7 +84,10 @@ output = $${:wrapper-path}
[publish-connection-parameter]
recipe = slapos.cookbook:publish
ipv4 = mqtt://${mosquitto-config-file:ipv4}:${mosquitto-config-file:port}
ipv6 = mqtt://${mosquitto-config-file:ipv6}:${mosquitto-config-file:port}
ipv4 = ${mosquitto-config-file:ipv4}
ipv6 = ${mosquitto-config-file:ipv6}
port = ${mosquitto-config-file:port}
ipv4-url = mqtt://${mosquitto-config-file:ipv4}:${mosquitto-config-file:port}
ipv6-url = mqtt://${mosquitto-config-file:ipv6}:${mosquitto-config-file:port}
username = ${mosquitto-password:username}
password = ${mosquitto-password:passwd}
software/peertube/instance-peertube-input-schema.json
View file @
05800615
...
...
@@ -64,7 +64,7 @@
"type"
:
"string"
},
"administrator"
:
{
"title"
:
"Administrator"
,
"title"
:
"Administrator"
,
"description"
:
"Who is behind the instance? A single person? A non profit?"
,
"default"
:
""
,
"type"
:
"string"
...
...
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