Add support for routines; state messages

This commit is contained in:
garrettmills
2020-04-15 09:11:10 -05:00
parent e401809ad5
commit 8319859828
36 changed files with 1146 additions and 22 deletions

View File

@@ -27,6 +27,22 @@ const hosts = {
},
},
edge: {
type: 'ssh',
ssh_params: {
port: 60022,
username: 'root',
host: 'edge.infrastructure',
key_file: '/home/garrettmills/.ssh/id_rsa',
},
packages: {
type: 'apt',
},
services: {
type: 'systemd',
},
},
}
module.exports = exports = hosts

16
config/notify.config.js Normal file
View File

@@ -0,0 +1,16 @@
// This is the configuration for the Flitter Gotify wrapper service, 'notify'.
const notify = {
// URL to the Gotify host (e.g. https://my-gotify.server.url/)
host: env('GOTIFY_HOST'),
// collection of notification channel groups
groups: {
// default group. You can specify as many groups as you want.
// Each group should be an array of Gotify app keys.
default: [
env('GOTIFY_DEFAULT_APP_KEY'),
],
}
}
module.exports = exports = notify

View File

@@ -0,0 +1,20 @@
const login_config = {
type: 'checks',
hosts: ['core', 'localhost', 'edge'],
steps: [
{
type: 'os.alive',
host: 'core',
},
{
type: 'os.alive',
host: 'edge',
},
{
type: 'os.alive',
host: 'localhost',
},
],
}
module.exports = exports = login_config

View File

@@ -0,0 +1,18 @@
const tmpdir_config = {
type: 'checks',
hosts: ['core', 'localhost'],
steps: [
{
type: 'fs.directory',
host: 'core',
path: '/tmp/glmdev',
},
{
type: 'fs.directory',
host: 'localhost',
path: '/tmp/glmdev',
},
],
}
module.exports = exports = tmpdir_config

View File

@@ -0,0 +1,16 @@
const updates_config = {
type: 'checks',
hosts: ['core', 'localhost'],
steps: [
{
type: 'package.updates',
host: 'core',
},
{
type: 'package.updates',
host: 'localhost',
},
],
}
module.exports = exports = updates_config