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
Carlos Ramos Carreño
slapos
Commits
6b857a09
Commit
6b857a09
authored
Oct 26, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
armin: add armin software
parent
1b8b0902
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
0 deletions
+151
-0
software/armin/README.md
software/armin/README.md
+1
-0
software/armin/buildout.hash.cfg
software/armin/buildout.hash.cfg
+23
-0
software/armin/instance-armin-input-schema.json
software/armin/instance-armin-input-schema.json
+7
-0
software/armin/instance-armin.jinja2.cfg
software/armin/instance-armin.jinja2.cfg
+46
-0
software/armin/instance.cfg
software/armin/instance.cfg
+39
-0
software/armin/software.cfg
software/armin/software.cfg
+20
-0
software/armin/software.cfg.json
software/armin/software.cfg.json
+15
-0
No files found.
software/armin/README.md
0 → 100644
View file @
6b857a09
# Armin software release
software/armin/buildout.hash.cfg
0 → 100644
View file @
6b857a09
# 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]
filename = instance.cfg
md5sum = b713721d638e04022eeb6d035300fd47
[template-armin]
_update_hash_filename_ = instance-armin.jinja2.cfg
md5sum = d0c300efc13268bf2b1449f3fcfa2969
software/armin/instance-armin-input-schema.json
0 → 100644
View file @
6b857a09
{
"$schema"
:
"http://json-schema.org/draft-04/schema"
,
"title"
:
"Armin"
,
"type"
:
"object"
,
"properties"
:
{
}
}
software/armin/instance-armin.jinja2.cfg
0 → 100644
View file @
6b857a09
[buildout]
parts =
directory
armin-service
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = {{ slap_connection['computer-id'] }}
partition = {{ slap_connection['partition-id'] }}
url = {{ slap_connection['server-url'] }}
key = {{ slap_connection['key-file'] }}
cert = {{ slap_connection['cert-file'] }}
[directory]
recipe = slapos.cookbook:mkdirectory
software = {{ buildout_directory }}
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
etc = ${:home}/etc
bin = ${:home}/bin
tmp = ${:home}/tmp
run = ${:var}/run
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
[armin-sh-wrapper]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
cd /opt/armin-server
sudo /opt/armin-server/armin-server.bin
[armin-service]
recipe = slapos.cookbook:wrapper
command-line = ${armin-sh-wrapper:output}
wrapper-path = ${directory:service}/armin
mode = 0775
pidfile = ${directory:run}/armin.pid
software/armin/instance.cfg
0 → 100644
View file @
6b857a09
[buildout]
parts =
switch-softwaretype
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
[jinja2-template-base]
recipe = slapos.recipe.template:jinja2
output = $${buildout:directory}/$${:filename}
extra-context =
context =
import json_module json
key eggs_directory buildout:eggs-directory
key develop_eggs_directory buildout:develop-eggs-directory
raw buildout_directory ${buildout:directory}
section slap_connection slap-connection
key slapparameter_dict slap-configuration:configuration
$${:extra-context}
[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
armin = dynamic-template-armin:output
RootSoftwareInstance = $${:armin}
[dynamic-template-armin]
< = jinja2-template-base
url = ${template-armin:target}
filename = instance-armin.cfg
extensions = jinja2.ext.do
software/armin/software.cfg
0 → 100644
View file @
6b857a09
[buildout]
extends =
buildout.hash.cfg
../../stack/slapos.cfg
parts +=
template
slapos-cookbook
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/template.cfg
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
[template-armin]
<= download-base
software/armin/software.cfg.json
0 → 100644
View file @
6b857a09
{
"name"
:
"Armin"
,
"description"
:
"Armin"
,
"serialisation"
:
"json-in-xml"
,
"software-type"
:
{
"armin"
:
{
"title"
:
"Armin"
,
"software-type"
:
"armin"
,
"description"
:
"Armin"
,
"request"
:
"instance-armin-input-schema.json"
,
"response"
:
"instance-armin-schema.json"
,
"index"
:
4
},
}
}
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