Sha256: a335b39b3d64fefe9114f38b4443c9140b2c58bdfa1cd8d385ae03403b4b55fe

Contents?: true

Size: 1.55 KB

Versions: 46

Compression:

Stored size: 1.55 KB

Contents

# REQUIRED: The credentials for creating/accessing your app's database
#
db_user: "#{app_name[0,16].downcase}"
db_pass:
db_name: "#{app_name.downcase}_#{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

46 entries across 46 versions & 1 rubygems

Version Path
rubber-2.6.3 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.6.2 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.6.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.6.0 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.5 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.4 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.3 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.2 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.5.0 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.4.2 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.4.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.4.0 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.3.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.3.0 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.2.4 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.2.3 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.2.2 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.2.1 templates/postgresql/config/rubber/rubber-postgresql.yml
rubber-2.2.0 templates/postgresql/config/rubber/rubber-postgresql.yml