Add supoort for heat
Pending on review: https://review.openstack.org/#/c/59292/ 1) Add dependency for openstack orchestration cookbook 2) Create heat database 3) Add testcase for heat database creation Implements: blueprint heat-support Change-Id: I99caa16f62945b8063f142d3897db8509248a0e8
This commit is contained in:
parent
f2fe3fdf49
commit
6ef16628e5
|
@ -16,3 +16,5 @@ cookbook "openstack-network",
|
|||
git: "git://github.com/stackforge/cookbook-openstack-network.git"
|
||||
cookbook "openstack-metering",
|
||||
git: "git://github.com/stackforge/cookbook-openstack-metering.git"
|
||||
cookbook "openstack-orchestration",
|
||||
git: "git://github.com/stackforge/cookbook-openstack-orchestration.git"
|
||||
|
|
|
@ -27,4 +27,5 @@ depends 'openstack-identity', '~> 8.0'
|
|||
depends 'openstack-image', '~> 8.0'
|
||||
depends 'openstack-metering', '~> 8.0'
|
||||
depends 'openstack-network', '~> 8.0'
|
||||
depends "openstack-orchestration", "~> 8.0"
|
||||
depends 'postgresql', '>= 3.0.0'
|
||||
|
|
|
@ -62,3 +62,9 @@ db_create_with_user(
|
|||
node["openstack"]["block-storage"]["db"]["username"],
|
||||
db_password("cinder")
|
||||
)
|
||||
|
||||
db_create_with_user(
|
||||
"orchestration",
|
||||
node["openstack"]["orchestration"]["db"]["username"],
|
||||
db_password("heat")
|
||||
)
|
||||
|
|
|
@ -56,4 +56,11 @@ describe "openstack-ops-database::openstack-db" do
|
|||
|
||||
@chef_run.converge "openstack-ops-database::openstack-db"
|
||||
end
|
||||
|
||||
it "creates orchestration database and user" do
|
||||
::Chef::Recipe.any_instance.should_receive(:db_create_with_user).
|
||||
with "orchestration", "heat", "test-pass"
|
||||
|
||||
@chef_run.converge "openstack-ops-database::openstack-db"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue