Giter Club home page Giter Club logo

ansible-proxmox-backup-server's Introduction

Ansible Role: Proxmox Backup Server

Installs containerized proxmox backup server. using the proxmox backup server docker image (https://github.com/nikosch86/docker-proxmox-backup-server).
Three users are created, an admin user for general management, a backup user to be used by consumers of the backup server and a monitoring user to be used by the monitoring tool.
A token for monitoring is created, upon first execution of this role, the token is displayed as debug output.

This role goes together well with the zabbix template (https://github.com/nikosch86/zabbix-proxmox-backup-server).

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

pbs_service_dir: /opt/pbs
The directory of the docker compose deployment for this service.

pbs_service_user: root
The user that runs the docker compose deployment for this service.

pbs_storage_dir: /data/pbs
The directory where the backups are stored.

pbs_datastore: backups
The name of the datastore, this is only cosmetic.

pbs_ssl_certificate: false
The path to the SSL certificate.
It defaults to false, which will cause pbs to create a self signed certificate.

pbs_ssl_certificate_key: false
The path to the SSL certificate key.
It defaults to false, which will cause pbs to create a self signed certificate.

pbs_timezone: "Asia/Dubai"
The timezone of the server.

pbs_user_admin_password: "change_me"
The password for the admin user.

pbs_user_backup_password: "change_me"
The password for the backup user.

pbs_user_monitoring_password: "change_me"
The password for the monitoring user.

pbs_network_mode: "port"
This variable can be used to control the network mode of the container.
Setting it to "host" will allow you to control access using the host firewall.

Dependencies

Docker needs to be installed, use the geerlingguy.docker for example.

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: servers
      become: true
      
      roles:
      - role: pbs
        tags: [deployment]
        vars:
          pbs_service_dir: "/home/{{ service_user }}/container/pbs"
          pbs_storage_dir: /mnt/data/pbs
          pbs_ssl_certificate: "/etc/ssl/private/server.crt"
          pbs_ssl_certificate_key: "/etc/ssl/private/server.key"
          pbs_user_admin_password: "{{ admin_password_from_vault }}"

Please note that a monitoring user, along with a token is generated, it will only be shown upon first execution of the role.

License

MIT

Author Information

https://github.com/nikosch86

ansible-proxmox-backup-server's People

Contributors

nikosch86 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.