charliemaiors.shinobi_db
Shinobi DB
This role will install and set up MariaDB, as well as create and fill the database for Shinobi CCTV. It works with Ubuntu 18.04/16.04, CentOS 7, and Arch Linux.
Requirements
No specific requirements are needed for this role.
Role Variables
You need to set four variables:
user_mail: "[email protected]"
user_pass: "password"
shinobi_pass: "password"
user_mail
anduser_pass
are for the actual user on the Shinobi front end.shinobi_pass
is the password for connecting to the database in the back end.
The default variables provided are:
shinobi_user: "shinobi"
dbhash: "md5"
mysql_root: "supersecurerootpassword"
Additionally, there is a third variable for generating random passwords. The shinobi_user
is the authorized user with access to the Shinobi database. The dbhash
variable is the password hashing method for the user_pass
variable, following a recent update. You can choose from these hashing methods:
- md5
- sha256
- sha512
The mysql_root
variable is the root user password for MariaDB. If you do not set any password variables, they will be generated randomly and shown in the Ansible log.
Example Playbook
You can use this role by just providing the user email and keeping the hash algorithm and password generation as defaults.
- hosts: servers
roles:
- { role: shinobi-db, user_mail: "[email protected]" }
Or you can specify your own passwords and pick a hash algorithm.
- hosts: servers
roles:
- { role: shinobi-db, user_mail: "[email protected]", user_pass: "test", shinobi_pass: "test", mysql_root: "supersecurerootpassword", dbhash: "sha256" }
License
GNU GPL
Author Information
This role was created in 2018 by Carlo Maiorano while working for the Department of Computer Science at Alma Mater Studiorum, under the guidance of Group Leader Paolo Bellavista.
ansible-galaxy install charliemaiors.shinobi_db