Improved default config to include TA examples
This commit is contained in:
parent
16e91dc4a0
commit
2a767199e2
|
|
@ -10,25 +10,32 @@ logLevel: "INFO"
|
||||||
|
|
||||||
# Actions (buttons) to show up on the WebUI:
|
# Actions (buttons) to show up on the WebUI:
|
||||||
actions:
|
actions:
|
||||||
|
# This will run a simple script that you create.
|
||||||
|
- title: Run backup script
|
||||||
|
shell: /opt/backupScript.sh
|
||||||
|
icon: backup
|
||||||
|
|
||||||
# This will send 1 ping (-c 1)
|
# This will send 1 ping (-c 1)
|
||||||
# Docs: https://docs.olivetin.app/action-ping.html
|
# Docs: https://docs.olivetin.app/action-ping.html
|
||||||
- title: Ping Google.com
|
- title: Ping host
|
||||||
shell: ping google.com -c 1
|
shell: ping {{ host }} -c {{ count }}
|
||||||
icon: ping
|
icon: ping
|
||||||
|
arguments:
|
||||||
|
- name: host
|
||||||
|
title: host
|
||||||
|
type: ascii_identifier
|
||||||
|
default: example.com
|
||||||
|
|
||||||
# Restart lightdm on host "overseer"
|
- name: count
|
||||||
|
title: Count
|
||||||
|
type: int
|
||||||
|
default: 1
|
||||||
|
|
||||||
|
# Restart lightdm on host "server1"
|
||||||
# Docs: https://docs.olivetin.app/action-ping.html
|
# Docs: https://docs.olivetin.app/action-ping.html
|
||||||
- title: restart lightdm
|
- title: restart httpd
|
||||||
icon: poop
|
icon: restart
|
||||||
shell: ssh root@overseer 'service lightdm restart'
|
shell: ssh root@server1 'service httpd restart'
|
||||||
|
|
||||||
- title: sleep 2 seconds
|
|
||||||
shell: sleep 2
|
|
||||||
icon: "🥱"
|
|
||||||
|
|
||||||
- title: sleep 5 seconds (timeout)
|
|
||||||
shell: sleep 5
|
|
||||||
icon: "😪"
|
|
||||||
|
|
||||||
# OliveTin can run long-running jobs like Ansible playbooks.
|
# OliveTin can run long-running jobs like Ansible playbooks.
|
||||||
#
|
#
|
||||||
|
|
@ -47,7 +54,24 @@ actions:
|
||||||
# see the docs below.
|
# see the docs below.
|
||||||
#
|
#
|
||||||
# Docs: https://docs.olivetin.app/action-container-control.html
|
# Docs: https://docs.olivetin.app/action-container-control.html
|
||||||
- title: Restart Plex
|
- title: Restart Docker Container
|
||||||
icon: smile
|
icon: restart
|
||||||
shell: docker restart plex
|
shell: docker restart {{ container }}
|
||||||
|
arguments:
|
||||||
|
- name: container
|
||||||
|
title: Container name
|
||||||
|
choices:
|
||||||
|
- value: plex
|
||||||
|
- value: traefik
|
||||||
|
- value: grafana
|
||||||
|
|
||||||
|
- title: Slow Script
|
||||||
|
shell: sleep 3
|
||||||
|
timeout: 5
|
||||||
|
icon: "🥱"
|
||||||
|
|
||||||
|
- title: Broken Script (timeout)
|
||||||
|
shell: sleep 5
|
||||||
|
timeout: 5
|
||||||
|
icon: "😪"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@ var emojis = map[string]string{
|
||||||
"poop": "💩",
|
"poop": "💩",
|
||||||
"smile": "😀",
|
"smile": "😀",
|
||||||
"ping": "📡",
|
"ping": "📡",
|
||||||
|
"backup": '💾',
|
||||||
|
"reboot": '⏻',
|
||||||
|
"restart": '⏻',
|
||||||
}
|
}
|
||||||
|
|
||||||
func lookupHTMLIcon(keyToLookup string) string {
|
func lookupHTMLIcon(keyToLookup string) string {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue