provide a default for db_host

This commit adds a reasonable default of 127.0.0.1
to the db_host parameter. I think we should provide reasonable
defaults when possible (and I think localhost is reasonable in
this case)

Change-Id: I078f3726f8fe4e2b79e3e7bc282463d54b3003fd
This commit is contained in:
Dan Bode
2013-05-15 20:21:46 -07:00
committed by Mathieu Gagné
parent 6acb4256d9
commit 2fc62f9e5e

View File

@@ -5,7 +5,7 @@
# #
# === Parameters # === Parameters
# #
# [db_host] Host where DB resides. Required. # [db_host] Host where DB resides. Optional. Defaults to 127.0.0.1..
# [keystone_db_password] Password for keystone DB. Required. # [keystone_db_password] Password for keystone DB. Required.
# [keystone_admin_token]. Auth token for keystone admin. Required. # [keystone_admin_token]. Auth token for keystone admin. Required.
# [admin_email] Email address of system admin. Required. # [admin_email] Email address of system admin. Required.
@@ -39,7 +39,6 @@
# } # }
class openstack::keystone ( class openstack::keystone (
$db_host,
$db_password, $db_password,
$admin_token, $admin_token,
$admin_email, $admin_email,
@@ -48,8 +47,9 @@ class openstack::keystone (
$nova_user_password, $nova_user_password,
$cinder_user_password, $cinder_user_password,
$quantum_user_password, $quantum_user_password,
$swift_user_password = false,
$public_address, $public_address,
$db_host = '127.0.0.1',
$swift_user_password = false,
$db_type = 'mysql', $db_type = 'mysql',
$db_user = 'keystone', $db_user = 'keystone',
$db_name = 'keystone', $db_name = 'keystone',