Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.16 KB

README.md

File metadata and controls

60 lines (42 loc) · 2.16 KB

geekoops-matomo

Test deployment

Minimalistic role to install matomo (as a system package) on an openSUSE Leap/SLES system.

This role doesn't take care of AppArmor. You might need to disable AppArmor during installation.

Requirements

Role Variables

Variable Description Default
db_configure Configure a MariaDB database for matomo false
db_name Database name to be created matomo
db_user Database username to be created for matomo matomo
db_pass Password for the database username notsecret
firewall_configure Toggle firewall configuration true
firewall_zone Firewall zone where to allow traffic to public

if db_configure is set to true, then the role will create a MariaDB database for you.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: jellyfish
  roles:
     - role: geekoops-matomo
       vars:
         db_configure: true
         db_name: 'matomo'
         db_user: 'matomo'
         db_pass: 'password123'
         firewall_configure: true
         firewall_zone: 'public'

This playbook will install the system package matomo and add a matomo database user and database with the password above. Firewall access is opened for http traffic and you can reach the matomo instance for configuration after installation on http://jellyfish/matomo (replace jellyfish with the system hostname).

License

MIT

Development

Add githooks

This repository ships pre-commit git hooks that will check the yaml syntax. To configure them do

git config --local core.hooksPath .githooks/