VeselaHouba / ansible-role-bareos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bareos

Role to setup BareOS server and clients.

Variables

Server

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 DB bareos exists. If not, create and fill with data (false)
  • bareos_sensu_postgres_pass - Set pass for user sensu to postgresql
  • bareos_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_hostname must match inventory_hostname in ansible inventory list. Some tasks will be delegated from backup server to this client
  • enable_backup_job - Will create backup job DefaultJobLinux
  • state - When set to absent, client will be removed from server config (default: present)
  • autostart - Schedule first backup right away (default: true)
  • director_ip - [Optional] Same as bareos_director, just different place to setup
  • director_name - [Optional] Same as bareos_director, just different place to setup

Client

  • bareos_install_client - Install packages for client (false)

Example Playbook

---
- hosts: bareos-client
  become: true
  roles:
    - { name: bareos, tags: bareos }

- hosts: bareos-server
  become: true
  roles:
    - { name: bareos, tags: bareos }

License

GNU GPL

Author Information

Jan Michalek a.k.a. VeselaHouba

About

License:GNU General Public License v3.0


Languages

Language:Shell 52.0%Language:Python 25.5%Language:Jinja 22.5%