From db8f15a27d16c30e31e0855d415b597eb292983b Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Thu, 30 Jan 2014 17:16:18 -0500 Subject: Add rabbit.cookie attribute All nodes in rabbitmq cluster should have same cookie. This patch adds default random cookie to existing templates. Change-Id: I6579089bd95b0169db20635479e077f3ecade8e2 --- undercloud-source.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'undercloud-source.yaml') diff --git a/undercloud-source.yaml b/undercloud-source.yaml index efce1e87..97a05ed9 100644 --- a/undercloud-source.yaml +++ b/undercloud-source.yaml @@ -55,7 +55,17 @@ Parameters: Description: The password for RabbitMQ Type: String NoEcho: true + RabbitCookieSalt: + Type: String + Default: unset + Description: Salt for the rabbit cookie, change this to force the randomly generated rabbit cookie to change. Resources: + RabbitCookie: + Type: OS::Heat::RandomString + Properties: + length: 20 + salt: + Ref: RabbitCookieSalt AccessPolicy: Properties: AllowedResources: @@ -191,6 +201,10 @@ Resources: Ref: RabbitUserName password: Ref: RabbitPassword + cookie: + Fn::GetAtt: + - RabbitCookie + - value undercloud: Type: OS::Nova::Server Properties: -- cgit 1.2.3-korg