Skip to content

Commit 881d16e

Browse files
author
Tod Beardsley
committed
Add some friendlier defaults to database.yml
Actually let people get going out of the gate without forcing them to puzzle out database.yml configurations. Also gives some hints on how to set up a database. Today, if you merely copy and paste from database.yml.example, you'll get yelled at: ```` $ ./msfconsole -L -y config/database.yml [-] No database definition for environment production ````
1 parent 7fdf84a commit 881d16e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

config/database.yml.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Please only use postgresql bound to a TCP port.
2+
# Only postgresql is supportable for metasploit-framework
3+
# these days. (No SQLite, no MySQL).
4+
#
5+
# To set up a metasploit database, follow the directions hosted at:
6+
# https://fedoraproject.org/wiki/Metasploit_Postgres_Setup (Works on
7+
# essentially any Linux distro, not just Fedora)
28
development: &pgsql
39
adapter: postgresql
410
database: metasploit_framework_development
@@ -9,6 +15,12 @@ development: &pgsql
915
pool: 5
1016
timeout: 5
1117

18+
# You will often want to seperate your databases between dev
19+
# mode and prod mode. Absent a production db, though, defaulting
20+
# to dev is pretty sensible for many developer-users.
21+
production: &production
22+
<<: *pgsql
23+
1224
# Warning: The database defined as "test" will be erased and
1325
# re-generated from your development database when you run "rake".
1426
# Do not set this db to the same as development or production.

0 commit comments

Comments
 (0)