Ansible Role to provision Zoneminder IP-CAM Servers
Go to file
adam a8b4d634c0 feat: allow zoneminder's apache config to contain the FQDN 2023-03-10 15:27:44 -06:00
.github updated funding options 2022-08-06 12:34:40 +02:00
defaults/main fixed database password generation and meta, updated molecule-config 2022-08-12 16:58:13 +02:00
meta updated molecule, linting and meta 2022-08-12 18:58:06 +02:00
molecule/default updated molecule documentation 2023-02-11 17:54:21 +01:00
tasks feat: allow zoneminder's apache config to contain the FQDN 2023-03-10 15:27:44 -06:00
templates/etc fixed database password generation and meta, updated molecule-config 2022-08-12 16:58:13 +02:00
.ansible-lint.yml lint fixes 2023-01-05 21:38:08 +01:00
.pylintrc lint fixes 2023-01-21 17:34:57 +01:00
.yamllint updated molecule, linting and meta 2022-08-12 18:58:06 +02:00
LICENSE.txt init 2022-05-11 20:41:04 +02:00
README.md updated badge 2023-01-21 17:39:34 +01:00
playbook.yml added basic testing, fixes 2022-05-12 14:26:04 +02:00
requirements.yml feat: allow specifying filename of your apache config file 2023-03-10 15:12:26 -06:00

README.md

ZoneMinder

Ansible Role - ZoneMinder

Ansible Role to deploy a ZoneMinder IP-CAM server.

Read into the official documentation on how to add ip-cams and so on.

Molecule Test Status YamlLint Test Status PyLint Test Status Ansible-Lint Test Status Ansible Galaxy Ansible Galaxy Downloads

Tested:

  • Debian 11

Install

ansible-galaxy install ansibleguy.sw_zoneminder

# or to custom role-path
ansible-galaxy install ansibleguy.sw_zoneminder --roles-path ./roles

# install dependencies
ansible-galaxy install -r requirements.yml

Functionality

  • Package installation

    • ZoneMinder Server
  • Configuration

    • Default opt-ins:

      • Database setup
      • Webserver setup
    • Default opt-outs:

      • Admin-tools
    • Default config:

      • Logging to syslog
      • Self-Signed certificate

Info

  • Note: this role currently only supports debian-based systems

  • Note: Most of the role's functionality can be opted in or out.

    For all available options - see the default-config located in the main defaults-file!

  • Warning: You should AT LEAST set a login password after the installation finished.

Usage

Config

Define the zoneminder dictionary as needed.

Example for a zoneminder server:

zoneminder:
  timezone: 'Europe/Vienna'
  tools: true  # install useful admin-tools
  
  apache:
    domain: 'zoneminder.template.ansibleguy.net'
    aliases: ['zm.template.ansibleguy.net']

    ssl:
      mode: 'letsencrypt'  # or selfsigned/ca
      #  if you use 'selfsigned' or 'ca':
      #    cert:
      #      cn: 'ZoneMinder Server'
      #      org: 'AnsibleGuy'
      #      email: 'zoneminder@template.ansibleguy.net'
    letsencrypt:
      email: 'zoneminder@template.ansibleguy.net'
  
  

Bare minimum example:

zoneminder:
  apache:
    domain: 'zoneminder.template.ansibleguy.net' 

You might want to use 'ansible-vault' to encrypt your passwords:

ansible-vault encrypt_string

Execution

Run the playbook:

ansible-playbook -K -D -i inventory/hosts.yml playbook.yml --ask-vault-pass

There are also some useful tags available:

  • config