Set up cacti in Debian-like systems (server side).
See and tests/pre.yml
.
-
cacti_server_checkout_repo
: [default:https://github.com/Cacti/cacti.git
]: Cacti git repo -
cacti_server_version
: [default:1.2.17
]: Only used in{{ cacti_server_git_version }}
-
cacti_server_git_version
: [default:"release/{{ cacti_server_version }}"
]: What version of Cacti to check out (set up). This can be the full 40-character SHA-1 hash, the literal string HEAD, a branch name, or a tag name -
cacti_server_config_database_default
: [default:cacti
]: Database name -
cacti_server_config_database_hostname
: [default:localhost
]: Database host -
cacti_server_config_database_username
: [default:cacti
]: Database username -
cacti_server_config_database_password
: [default:cacti
]: Database password -
cacti_server_config_database_port
: [default:3306
]: Database port -
cacti_server_config_url_path
: [default:/cacti/
]: The (default) path of your cacti install -
cacti_server_use_poller_php
: [default:true
]: Whether or not to install a crontab for the poller -
cacti_server_install
: [default:[]
]: Additional packages to install -
cacti_server_install_path
: [default:{}
]: Install declaration -
cacti_server_install_path.src
: [required]: Path of Cacti checkout (e.g."{{ cacti_server_checkout_path }}"
) -
cacti_server_install_path.dest
: [required]: Path of Cacti install (where it will be symlinked to, e.g./var/www/example.com/cacti/public_html/cacti
)
None
---
- hosts: all
roles:
- oefenweb.cacti-server
vars:
cacti_server_install_path:
src: "{{ cacti_server_checkout_path }}"
dest: /var/www/example.com/cacti/public_html/cacti
MIT
Mischa ter Smitten
Are welcome!