config.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # There is a built-in micro proxy that will host the webui and REST API all on
  2. # one port (this is called the "Single HTTP Frontend") and means you just need
  3. # one open port in the container/firewalls/etc.
  4. #
  5. # Listen on all addresses available, port 1337
  6. listenAddressSingleHTTPFrontend: 0.0.0.0:1337
  7. # Choose from INFO (default), WARN and DEBUG
  8. logLevel: "INFO"
  9. # Actions (buttons) to show up on the WebUI:
  10. actions:
  11. # This will run a simple script that you create.
  12. - title: Run backup script
  13. shell: /opt/backupScript.sh
  14. maxConcurrent: 1
  15. icon: backup
  16. - title: date
  17. shell: date
  18. # This will send 1 ping (-c 1)
  19. # Docs: https://docs.olivetin.app/action-ping.html
  20. - title: Ping host
  21. shell: ping {{ host }} -c {{ count }}
  22. icon: ping
  23. timeout: 100
  24. arguments:
  25. - name: host
  26. title: host
  27. type: ascii_identifier
  28. default: example.com
  29. description: The host that you want to ping
  30. - name: count
  31. title: Count
  32. type: int
  33. default: 1
  34. description: How many times to do you want to ping?
  35. # Restart lightdm on host "server1"
  36. # Docs: https://docs.olivetin.app/action-ping.html
  37. - title: restart httpd
  38. icon: restart
  39. shell: ssh root@server1 'service httpd restart'
  40. # OliveTin can run long-running jobs like Ansible playbooks.
  41. #
  42. # For such jobs, you will need to install ansible-playbook on the host where
  43. # you are running OliveTin, or in the container.
  44. #
  45. # You probably want a much longer timeout as well (so that ansible completes).
  46. - title: "Run Ansible Playbook"
  47. icon: "&#x1F1E6"
  48. shell: ansible-playbook -i /etc/hosts /root/myRepo/myPlaybook.yaml
  49. timeout: 120
  50. # OliveTin can control containers - docker is just a command line app.
  51. #
  52. # However, if you are running in a container you will need to do some setup,
  53. # see the docs below.
  54. #
  55. # Docs: https://docs.olivetin.app/action-container-control.html
  56. - title: Restart Docker Container
  57. icon: restart
  58. shell: docker restart {{ container }}
  59. arguments:
  60. - name: container
  61. title: Container name
  62. choices:
  63. - value: plex
  64. - value: traefik
  65. - value: grafana
  66. - title: Slow Script
  67. shell: sleep 3
  68. timeout: 5
  69. icon: "&#x1F971"
  70. - title: Broken Script (timeout)
  71. shell: sleep 5
  72. timeout: 5
  73. icon: "&#x1F62A"