config.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. icon: backup
  15. # This will send 1 ping (-c 1)
  16. # Docs: https://docs.olivetin.app/action-ping.html
  17. - title: Ping host
  18. shell: ping {{ host }} -c {{ count }}
  19. icon: ping
  20. arguments:
  21. - name: host
  22. title: host
  23. type: ascii_identifier
  24. default: example.com
  25. - name: count
  26. title: Count
  27. type: int
  28. default: 1
  29. # Restart lightdm on host "server1"
  30. # Docs: https://docs.olivetin.app/action-ping.html
  31. - title: restart httpd
  32. icon: restart
  33. shell: ssh root@server1 'service httpd restart'
  34. # OliveTin can run long-running jobs like Ansible playbooks.
  35. #
  36. # For such jobs, you will need to install ansible-playbook on the host where
  37. # you are running OliveTin, or in the container.
  38. #
  39. # You probably want a much longer timeout as well (so that ansible completes).
  40. - title: "Run Ansible Playbook"
  41. icon: "&#x1F1E6"
  42. shell: ansible-playbook -i /etc/hosts /root/myRepo/myPlaybook.yaml
  43. timeout: 120
  44. # OliveTin can control containers - docker is just a command line app.
  45. #
  46. # However, if you are running in a container you will need to do some setup,
  47. # see the docs below.
  48. #
  49. # Docs: https://docs.olivetin.app/action-container-control.html
  50. - title: Restart Docker Container
  51. icon: restart
  52. shell: docker restart {{ container }}
  53. arguments:
  54. - name: container
  55. title: Container name
  56. choices:
  57. - value: plex
  58. - value: traefik
  59. - value: grafana
  60. - title: Slow Script
  61. shell: sleep 3
  62. timeout: 5
  63. icon: "&#x1F971"
  64. - title: Broken Script (timeout)
  65. shell: sleep 5
  66. timeout: 5
  67. icon: "&#x1F62A"