Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SM-Mitaka: added support of mitaka to SM
Partial-Bug: #1593675 changes: 1. new parameters for neutron under nova.conf 2. v2.1 version for keystone endpoint 3. nova_api database is needed for mitaka onwards 4. Enforce contrail-openstack package to be installed before openstack PATCH 2: made default_domain optional for kilo/liberty (pre-mitaka) Conflicts: contrail/environment/modules/contrail/manifests/profile/openstack/provision.pp Change-Id: Ia38b2b8f4ba72c4cbbae2a0ac4c95144ef6d496b
- Loading branch information
Dheeraj Gautam
committed
Aug 1, 2016
1 parent
b8b0987
commit 03d948b
Showing
8 changed files
with
103 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
contrail/environment/modules/nova/manifests/db/mysql_api.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# == Class: nova::db::mysql_api | ||
# | ||
# Class that configures mysql for the nova_api database. | ||
# | ||
# === Parameters: | ||
# | ||
# [*password*] | ||
# Password to use for the nova user | ||
# | ||
# [*dbname*] | ||
# (optional) The name of the database | ||
# Defaults to 'nova_api' | ||
# | ||
# [*user*] | ||
# (optional) The mysql user to create | ||
# Defaults to 'nova_api' | ||
# | ||
# [*host*] | ||
# (optional) The IP address of the mysql server | ||
# Defaults to '127.0.0.1' | ||
# | ||
# [*charset*] | ||
# (optional) The charset to use for the nova database | ||
# Defaults to 'utf8' | ||
# | ||
# [*collate*] | ||
# (optional) The collate to use for the nova database | ||
# Defaults to 'utf8_general_ci' | ||
# | ||
# [*allowed_hosts*] | ||
# (optional) Additional hosts that are allowed to access this DB | ||
# Defaults to undef | ||
# | ||
class nova::db::mysql_api( | ||
$password, | ||
$dbname = 'nova_api', | ||
$user = 'nova_api', | ||
$host = '127.0.0.1', | ||
$charset = 'utf8', | ||
$collate = 'utf8_general_ci', | ||
$allowed_hosts = undef, | ||
) { | ||
|
||
::openstacklib::db::mysql { 'nova_api': | ||
user => $user, | ||
password_hash => mysql_password($password), | ||
dbname => $dbname, | ||
host => $host, | ||
charset => $charset, | ||
collate => $collate, | ||
allowed_hosts => $allowed_hosts, | ||
} | ||
|
||
::Openstacklib::Db::Mysql['nova_api'] ~> Exec<| title == 'nova-api-db-sync' |> | ||
} |