Role to setup BareOS server and clients.
Note: More options can be seen in defaults/main.yml
bareos_install_server- Install packages valid for server (false). Note that this also installs postgresql!bareos_setup_db- Check if postgresql DBbareosexists. If not, create and fill with data (false)bareos_sensu_postgres_pass- Set pass for user sensu to postgresqlbareos_director- If you need to override backup director IP address on your client's /etc/hosts
bareos_director:
ip: 10.0.0.1
name: backup
bareos_clients- List of clients in following format:
bareos_clients:
- name: some-hostname
ansible_delegate_hostname: some-hostname
address: 10.1.1.1
password: MySuperSecretPassword
enable_backup_job: true
state: present # optional
autostart: true # optional
director_ip: 10.0.0.1 # optional
director_name: backup # optional
max_job_bandwidth: 1 mb/s # optional
NOTES:
ansible_delegate_hostnamemust matchinventory_hostnamein ansible inventory list. Some tasks will be delegated from backup server to this clientenable_backup_job- Will create backup jobDefaultJobLinuxstate- When set toabsent, client will be removed from server config (default:present)autostart- Schedule first backup right away (default:true)director_ip- [Optional] Same asbareos_director, just different place to setupdirector_name- [Optional] Same asbareos_director, just different place to setup
bareos_install_client- Install packages for client (false)
---
- hosts: bareos-client
become: true
roles:
- { name: bareos, tags: bareos }
- hosts: bareos-server
become: true
roles:
- { name: bareos, tags: bareos }
GNU GPL
Jan Michalek a.k.a. VeselaHouba