Sha256: 942a3154629cc86c57c11b344461ece9331aba0fb5f830d57b71e0761d99260d

Contents?: true

Size: 1.34 KB

Versions: 20

Compression:

Stored size: 1.34 KB

Contents

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

db_slave_user: "#{('slave_' + db_user)[0,16]}"
db_replicator_user: "#{('replicator_' + db_user)[0,16]}"

# REQUIRED: The command to use to do a full backup of your database using
#           "rubber util:backup_db"
db_backup_cmd: "nice mysqldump -h %host% -u %user% --password=%pass% %name% | gzip -c > %backup_file%"
# REQUIRED: The command to use to restore the database using
#           "rubber util:restore_db_s3"
#           This command will receive the data generated by db_backup_cmd via
#           its standard input
db_restore_cmd: "zcat - | mysql -h %host% -u %user% --password=%pass% %name%"

# REQUIRED: The directory to store the db data in
#
db_root_dir: /mnt/mysql
db_data_dir: "#{db_root_dir}/data"
db_log_dir: "#{db_root_dir}/log"

role_dependencies:
  percona_master: [percona, "db:primary=true"]
  percona_slave: [percona, db]
  db:primary=true: [percona, percona_master]
  db: [percona, percona_slave]

packages: [percona-server-client, libmysqlclient-dev]
gems: [mysql]

roles:
  percona_master:
    db_server_id: 1
  percona_slave:
    db_server_id: 2
  percona:
    packages: [
                percona-server-server,
                maatkit # useful mysql tools for replication
              ]

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rubber-2.2.4 templates/percona/config/rubber/rubber-percona.yml
rubber-2.2.3 templates/percona/config/rubber/rubber-percona.yml
rubber-2.2.2 templates/percona/config/rubber/rubber-percona.yml
rubber-2.2.1 templates/percona/config/rubber/rubber-percona.yml
rubber-2.2.0 templates/percona/config/rubber/rubber-percona.yml
rubber-2.1.2 templates/percona/config/rubber/rubber-percona.yml
rubber-2.1.1 templates/percona/config/rubber/rubber-percona.yml
rubber-2.1.0 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.8 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.7 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.6 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.5 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.4 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.3 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.2 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.1 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.0 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.0.pre12 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.0.pre11 templates/percona/config/rubber/rubber-percona.yml
rubber-2.0.0.pre10 templates/percona/config/rubber/rubber-percona.yml