Commit 6b857a09 authored by Joanne Hugé's avatar Joanne Hugé

armin: add armin software

parent 1b8b0902
# Armin software release
# 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
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Armin",
"type": "object",
"properties": {
}
}
[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
[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
[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
{
"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
},
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment