Skip to content

Commit

Permalink
DB ip changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BDQ committed Sep 5, 2012
1 parent e9aee1f commit 9608846
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/dbserver/manifests/init.pp
Expand Up @@ -47,7 +47,10 @@
ensure => present,
database => $app_name,
user => "spree",
host => $db_server,
host => $db_server ? {
'127.0.0.1' => 'localhost',
default => $db_server
},
password => $db_pass,
notify => Exec['reset database for demo'],
require => Mysql::Database["${app_name}"]
Expand All @@ -57,7 +60,10 @@
ensure => present,
database => $app_name,
user => "spree",
host => $db_server,
host => $db_server ? {
'127.0.0.1' => 'localhost',
default => $db_server
},
password => $db_pass,
require => Mysql::Database["${app_name}"]
}
Expand Down

0 comments on commit 9608846

Please sign in to comment.