##Zoneminder playbook with vagrant repro enviroment##
Requirements:
- Install Vagrant
- Install Ansible
- Install virtualbox or vmware fusion
- Install Vagrant VMWare (if you want to use vmware)
virtualbox example:
vagrant up --provider virtualbox
Then go to http://localhost:8080/zm
vmware_fusion example:
vagrant up --provider vmware_fusion
Then go to http://localhost:8080/zm
ANSIBLE: Modify ansible.cfg:
[defaults]
host_key_checking = False
Create hosts file:
10.0.1.2 ansible_user=root
Example command:
ansible-playbook -i hosts playbook.yml --ask-pass
DOCKER:
NOTE: If you require access to devices on the host, use --privledged=true
docker run -d --name="Zoneminder" -v /path/to/config:/config:rw -v /etc/localtime:/etc/localtime:ro -p 80:80 rileyschuit/zoneminder
Get Started:
- Modify cgi-bin path: Options -> Paths -> PATH_ZMS -> /zm/cgi-bin/nph-zms
- BEFORE YOU ADD CAMERAS, Enable video export: Options -> OPT_FFMPEG (enable). PATH_FFMPEG: /usr/bin/ffmpeg