config.yaml 2.2 KB

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