Sketching out some system and service specific configuration

The `demo/config` directory is eventually what I would expect to live in
`/etc/otto` on Otto hosts.

See #39 and #52
This commit is contained in:
R Tyler Croy 2021-03-03 09:53:02 -08:00
parent 9d591e64e3
commit 0412bf4226
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Local demo configuration for the object store
#
---
object_dir: 'tmp/objects'

View File

@ -0,0 +1,2 @@
---
steps_dir: 'tmp'

16
demo/config/otto.yml Normal file
View File

@ -0,0 +1,16 @@
# This is the root and shared configuration across all otto services.
#
---
services:
dashboard:
host: 'localhost'
port: 7670
objects:
host: 'localhost'
port: 7671
parser:
host: 'localhost'
port: 7672
orchestrator:
host: 'localhost'
port: 7673

View File

@ -0,0 +1,34 @@
# This is an example project configuration for Otto
#
# This is not a replacement for the Ottofile, but rather the binding to make
# sure that Otto knows where to find the Ottofile for the repository
---
title: 'Hello World'
description: |
The Hello World project exists as a simple demonstrate loading a project into Otto
source:
# This repository does not have an Ottofile!
url: 'https://github.com/rtyler/hello-gem.git'
# The refspec defaults to wildcard, if the refspec is specified, only changes
# on that refspec will be executed
refspec: '*'
# Optional override of what the default source of the pipeline should be.
#
# This can be helpful for describing a specific file, e.g. `./deploy/Ottofile`
# or even overwriting what is defined in the repository with a server-side
# override.
#
# If the `pipeline` key is present, either path or inline *must* be defined
pipeline:
#path: './deploy/Ottofile'
# Since the project doesn't have an Ottofile, injecting one for it
inline: |
pipeline {
steps {
sh 'pwd'
sh 'ls -lah'
}
}