Add support for routines; state messages
This commit is contained in:
@@ -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
16
config/notify.config.js
Normal 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
|
||||
20
config/routines/login.config.js
Normal file
20
config/routines/login.config.js
Normal 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
|
||||
18
config/routines/tmpdir.config.js
Normal file
18
config/routines/tmpdir.config.js
Normal 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
|
||||
16
config/routines/updates.config.js
Normal file
16
config/routines/updates.config.js
Normal 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
|
||||
Reference in New Issue
Block a user