Version information
released Nov 22nd 2017
This version is compatible with:
- ,
Start using this module
Add this module to your Puppetfile:
mod 'af6140-wal_e', '0.4.2'
Learn more about managing modules with a PuppetfileDocumentation
af6140/wal_e — version 0.4.2 Nov 22nd 2017
puppet_wal_e
Description
Postgresql wal_e puppet module, install wal-e backup program from source or through pip. Some parts are based on chef module from wal-e project.
It supports cron job setup for base backup.
Most functionality has been tested on Centos 7 and Ubuntu 14.04.
Requirement
env_dir of Daemontools package is required to ease setup of environment variables for different storage backends. Module user need to install it as dependency.
Python and pip dependencies will be installed, documented at wal_e github page.
Depends on the cloud storage backend, configuration is required.
Usage
class {'wal_e':
env_dir => '/etc/wal-e.d' #default to this folder
user => 'postgres',
group => 'postgres',
storage_type => 'aws' #default to aws
storage_configs => {
's3_prefix' => 's3://dummy',
'aws_secret_key' => '',
'aws_access_key' => '',
'aws_region' => 'us-east-1',
}
}
Change Log
0.4.2
- use python2-pip package, since it is obsoleted by python2-pip package on redhat platform
- install azure 1.0.3 as dependency to avoid error
0.4.1
- Urgent fix: fix script indent
0.4.0
- change purge_base_backup.sh to actually delete old base backup
- allow use command wrapper like sensu-wrapper to run the cron job so that it can do extra like reporting to sensu
- separate wal_e::cron as a individual class
- use assert_type other than validate
- change cron management to rmuller/cron other than default cron resource, this will generate cron def under /etc/cron.d
0.3.0
- purge_base_backup.sh update, using template and retain days other than numbers of
0.2.1
- merge PR from smithtrevor to fix purge command logic
0.2.0
- do not use package to install gevent, when install wal-e 0.9.2 it pulls down latest gevent 1.1.2, which need to be compiled and is broken when /tmp is mouted as noexec
- use -b option to use wal_e::envdir as tmp dir when pip install with exec resource
0.1.6
- enable purge old backup, maximum numbers to retain
- change cron commnad to purge backup if enabled
0.1.5
- Remove --pool-size=8 from base backup options, it's seems only effective for wal-push.
0.1.4
- Change python packages installed from native os repository: python-gevent. Pip installation has issue with /tmp mounted with noexec flag. python-boto is not installed from os repository, since at least on Centos, it's dependency python-six does not meet version requirements of gcloud.