trainline-eu.ansible_barman_role

Barman Ansible 角色 构建状态

Ansible 角色,用于安装和配置 Barman,这是一个用于 Postgresql 的备份管理器。

安装

此角色已在 Ansible 2.3.0 及更高版本上测试。

要安装:

ansible-galaxy install trainline-eu.ansible_barman_role

依赖项

无依赖项

推荐的相关角色:

  • trainline-eu.ansible_postgresql_role

兼容性矩阵

此表列出了测试过的操作系统与 Barman 的组合版本。

发行版 / PostgreSQL 2.x
Debian 8.x :white_check_mark:
Debian 9.x :white_check_mark:
Debian 10.x :white_check_mark:
  • :white_check_mark: - 已测试,运行良好

变量

# 基本设置
barman_databases:                                 # 必填
  - name: 'app1'                                     # 必填
    description: 'App1 的数据库'                    # 必填
    primary_host: "{{ groups['db-app1'][0] }}"       # 必填
    postgres_barman_password: 'super_secure_vaulted' # 必填
    backup_method: rsync                             # 可选(默认值)
    retention_policy: '7 天的恢复窗口'                # 可选(默认值)
    standby_hosts: "{{ groups['db-app1'][1:] }}"     # 可选(自动授权 SSH 访问此服务器列表)
    extract_host_from_var: 'ec2_private_ip_address'  # 可选(从清单 hostvars 中提取的主机变量)

barman_restore_directory: "/home/restore-$server"

barman_rsync_daemon_enabled: true (默认值为 false)
# 如果启用 Rsync 守护进程
barman_rsync_allowed_hosts: 10.0.0.0/24
barman_rsync_password: "vaulted_secret_password"

# Barman 配置
# 请参考 http://docs.pgbarman.org/release/2.4/barman.5.html#configuration-file-syntax
# 以了解以下设置
barman_config:                        # 可选
  reuse_backup: "None|link|copy"
  bandwith_limit: 0
  parallel_jobs: 2
  network_compression: true|false
  backup_options: exclusive_backup|concurrent_backup

测试

目前此项目中没有编写测试。

但是,该角色与 postgresql 角色 一起在一组自动化集成测试中进行了测试。

许可证

根据 MIT 许可证授权。有关详细信息,请参见 LICENSE 文件。

感谢

创建者:

维护者:

反馈、错误报告、请求等...

欢迎 提出!

关于项目

Install and configure Barman, a Postgresql backup manager

安装
ansible-galaxy install trainline-eu.ansible_barman_role
许可证
mit
下载
6.3k
拥有者