make AMQP support when develop_mode=false
When develop_mode=false, the password of mq user "guest" in the databag user_passwords is required. But the current code doesn't support. I made it work, and add the test cases. Closes-Bug: #1257554 Change-Id: I0d01bd73eaec9cc90304e67484fec15fad061504
This commit is contained in:
parent
d21a7107a5
commit
ecff952bd5
@ -2,6 +2,9 @@
|
||||
|
||||
This file is used to list changes made in each version of cookbook-openstack-ops-messaging.
|
||||
|
||||
## 8.0.1:
|
||||
* Add change_password to make rabbitmq work when develop_mode=false
|
||||
|
||||
## 8.0.0
|
||||
* upgrade to Havana
|
||||
|
||||
|
@ -66,11 +66,14 @@ License and Author
|
||||
| **Author** | Matt Ray (<matt@opscode.com>) |
|
||||
| **Author** | Craig Tracey (<craigtracey@gmail.com>) |
|
||||
| **Author** | Ionut Artarisi (<iartarisi@suse.cz>) |
|
||||
| **Author** | JieHua Jin (<jinjhua@cn.ibm.com>) |
|
||||
| | |
|
||||
| **Copyright** | Copyright (c) 2013, Opscode, Inc. |
|
||||
| **Copyright** | Copyright (c) 2013, Craig Tracey |
|
||||
| **Copyright** | Copyright (c) 2013, AT&T Services, Inc. |
|
||||
| **Copyright** | Copyright (c) 2013, SUSE Linux GmbH. |
|
||||
| **Copyright** | Copyright (c) 2013, IBM Corp. |
|
||||
|
||||
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -3,7 +3,7 @@ maintainer "Opscode, Inc."
|
||||
maintainer_email "matt@opscode.com"
|
||||
license "Apache 2.0"
|
||||
description "Provides the shared messaging configuration for Chef for OpenStack."
|
||||
version "8.0.0"
|
||||
version "8.0.1"
|
||||
|
||||
recipe "server", "Installs and configures server packages for messaging queue used by the deployment."
|
||||
recipe "rabbitmq-server", "Installs and configures RabbitMQ and is called via the server recipe"
|
||||
|
@ -66,6 +66,13 @@ rabbitmq_user "add openstack rabbit user" do
|
||||
action :add
|
||||
end
|
||||
|
||||
rabbitmq_user "change openstack rabbit user password" do
|
||||
user user
|
||||
password pass
|
||||
|
||||
action :change_password
|
||||
end
|
||||
|
||||
rabbitmq_vhost "add openstack rabbit vhost" do
|
||||
vhost vhost
|
||||
|
||||
|
@ -93,6 +93,19 @@ describe "openstack-ops-messaging::rabbitmq-server" do
|
||||
)
|
||||
end
|
||||
|
||||
it "changes password" do
|
||||
resource = @chef_run.find_resource(
|
||||
"rabbitmq_user",
|
||||
"change openstack rabbit user password"
|
||||
).to_hash
|
||||
|
||||
expect(resource).to include(
|
||||
:user => "guest",
|
||||
:password => "rabbit-pass",
|
||||
:action => [:change_password]
|
||||
)
|
||||
end
|
||||
|
||||
it "adds vhost" do
|
||||
resource = @chef_run.find_resource(
|
||||
"rabbitmq_vhost",
|
||||
|
Loading…
Reference in New Issue
Block a user