diff options
Diffstat (limited to 'lib/puppet/rails.rb')
-rw-r--r-- | lib/puppet/rails.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb index 7cb58cd94..8ec02af7c 100644 --- a/lib/puppet/rails.rb +++ b/lib/puppet/rails.rb @@ -36,11 +36,13 @@ module Puppet::Rails case Puppet[:dbadapter] when "sqlite3": args[:dbfile] = Puppet[:dblocation] - when "mysql": + when "mysql", "postgresql": args[:host] = Puppet[:dbserver] args[:username] = Puppet[:dbuser] args[:password] = Puppet[:dbpassword] args[:database] = Puppet[:dbname] + else + raise ArgumentError, "Invalid db adapter %s" % Puppet[:dbadapter] end args end |