Coder Social home page Coder Social logo

stouts.wale's Introduction

Stouts.wal-e

Build Status

Ansible role which performs continuous archiving of PostgreSQL WAL files

  • Install and setup Wal-e
  • Setup cronjobs

Variables

The role variables and default values.

wale_enabled: yes                     # The role is enabled
wale_home: /etc/wale                  # Where make runscript
wale_logdir: /var/log/wale            # Where store logs
wale_user: "postgres"
wale_group: "postgres"
wale_cron: []                          # Setup cronjobs
                                       # Ex. wale_cron:
                                       #     - { schedule: 0 2 * * *, cmd: backup-push /var/lib/postgresql/9.1/main/ }

# Set the credentials for enable upload to AWS S3
wale_aws_access_key_id:               
wale_aws_secret_access_key:
wale_aws_s3_prefix:

# Set the credentials for enable upload to WABS
wale_wabs_account_name:               
wale_wabs_access_key:
wale_wabs_prefix:

# Set the credentials for enable upload to SWIFT
wale_swift_authurl:
wale_swift_tenant:
wale_swift_user:
wale_swift_password:
wale_swift_prefix:

Usage

Add Stouts.wale to your roles and change variables in your playbook file.

Example:

- hosts: all

  roles:
    - Ansibles.postgresql
    - Stouts.wsgi

  vars:
    postgresql_wal_level: hot_standby
    postgresql_archive_mode: yes
    postgresql_archive_command: /etc/wale/wale.sh wal-push %p
    postgresql_archive_timeout: 60

# Stouts.wale
# ===========
    wale_aws_access_key_id: <access_key>
    wale_aws_secret_access_key: <secret_key>
    wale_aws_s3_prefix: s3://<bucket>/{{inventory_hostname}}
    wale_cron:
      - { schedule: "0 2 * * *", cmd: "backup-push /var/lib/postgresql/{{postgresql_version}}/main" }

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

stouts.wale's People

Contributors

klen avatar

Watchers

Jordan Bach avatar James Cloos 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.