Sha256: 3bfb7b45cb0d5b9e09e4e9ea8307d477dccad022d0910784859ad59d00a49bb0

Contents?: true

Size: 1.54 KB

Versions: 12

Compression:

Stored size: 1.54 KB

Contents

# REQUIRED: The credentials for creating/accessing your app's database
#
db_user: "#{app_name[0,16]}"
db_pass:
db_name: "#{app_name}_#{Rubber.env}"

db_replication_user: replication
db_replication_pass:
postgresql_synchronous_replication: false

# REQUIRED: The command to use to do a full backup of your database using
#           "rubber util:backup_db"
db_backup_cmd: "set -e -o pipefail; nice sudo -u postgres pg_dumpall -U postgres | gzip -c > %backup_file%"

# REQUIRED: The command to use to restore the database using
#           "rake util:restore_db"
#           This command will receive the data generated by db_backup_cmd via
#           its standard input
db_restore_cmd: "zcat - | psql -U %user% -h %host% %name%"

postgresql_ver: 9.1
postgresql_conf_dir: "/etc/postgresql/#{postgresql_ver}/main"
postgresql_data_dir: "/mnt/postgresql/#{postgresql_ver}/data"
postgresql_archive_dir: "/mnt/postgresql/#{postgresql_ver}/archive"
postgresql_pid_file: "/var/run/postgresql/#{postgresql_ver}-main.pid"
postgresql_ctl: "/usr/bin/env service postgresql"

# Capistrano needs db:primary role for migrate to work,
# so we might as well just make consistent across the board
role_dependencies:
  postgresql_master: [postgresql, "db:primary=true"]
  postgresql_slave: [postgresql, db]
  "db:primary=true": [postgresql, postgresql_master]
  db: [postgresql, postgresql_slave]

packages: [postgresql-client, libpq-dev]
gems: [pg]

roles:
  postgresql_master:
    db_server_id: 1
  postgresql_slave:
    db_server_id: 2
  db:
    packages: ["postgresql-#{postgresql_ver}"]

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubber-2.0.5 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.4 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.3 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.2 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre12 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre11 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre10 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre9 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre8 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.0.0.pre7 templates/postgresql/config/rubber/rubber-postgresql.yml