Add username parameter for rabbit
authorRichard Su <rwsu@redhat.com>
Tue, 11 Feb 2014 23:52:37 +0000 (15:52 -0800)
committerRichard Su <rwsu@redhat.com>
Mon, 17 Feb 2014 19:07:28 +0000 (11:07 -0800)
Username is currently assumed to be guest in the configuration
files. This change makes it more explicit.

Configuration files in tripleo-image-elements will be updated
to use this parameter in an upcoming patch.

Change-Id: Ia176f4d573a3a293560c72236a4181befa678301

block-storage.yaml
examples/scale1.yaml
examples/scale2.yaml
notcompute.yaml
nova-compute-group.yaml
nova-compute-instance.yaml
overcloud-source.yaml
undercloud-source.yaml

index 4849635..ef55506 100644 (file)
@@ -13,6 +13,9 @@ Parameters:
   RabbitHost:
     Type: String
     Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
+  RabbitUserName:
+    Type: String
+    Default: "guest"
   RabbitPassword:
     Type: String
     Default: "guest"
@@ -59,6 +62,7 @@ Resources:
       admin-password: {Ref: AdminPassword}
       rabbit:
         host: {Ref: RabbitHost}
+        username: {Ref: RabbitUserName}
         password: {Ref: RabbitPassword}
       interfaces:
         control: {Ref: NeutronPublicInterface}
index c0a0763..bbe618d 100644 (file)
@@ -23,6 +23,7 @@ Resources:
     SubKey: Resources.NovaCompute0Config
     Parameters:
         ComputeImage: "123"
+        RabbitUserName: "guest"
         RabbitPassword: "guest"
   NovaCompute0:
     Type: FileInclude
index d1a81fe..8b3e4f8 100644 (file)
@@ -2,6 +2,8 @@ HeatTemplateFormatVersion: '2012-12-12'
 Parameters:
   ComputeImage:
     Type: String
+  RabbitUserName:
+    Type: String
   RabbitPassword:
     Type: String
     NoEcho: true
@@ -62,5 +64,6 @@ Resources:
                   - NovaCompute0
                   - networks
       rabbit:
+        username: {Ref: RabbitUserName}
         password: {Ref: RabbitPassword}
 
index fe66f3b..b097dd0 100644 (file)
@@ -65,6 +65,8 @@ Parameters:
     Description: Password for RabbitMQ
     Type: String
     NoEcho: true
+  RabbitUserName:
+    Type: String
   RabbitPassword:
     Type: String
     NoEcho: true
@@ -180,10 +182,13 @@ Resources:
       rabbit:
         host:
           '127.0.0.1'
+        username:
+          Ref: RabbitUserName
         password:
           Ref: RabbitPassword
         users:
-          username: guest
+          username:
+            Ref: RabbitUserName
           password:
             Ref: RabbitPassword
       service-password:
index 9942028..6a58643 100644 (file)
@@ -22,6 +22,8 @@ Parameters:
     Type: String
   RabbitHost:
     Type: String
+  RabbitUserName:
+    Type: String
   RabbitPassword:
     Type: String
     NoEcho: true
@@ -54,6 +56,7 @@ Resources:
         ServicePassword: {Ref: ServicePassword}
         NeutronHost: {Ref: NeutronHost}
         RabbitHost: {Ref: RabbitHost}
+        RabbitUserName: {Ref: RabbitUserName}
         RabbitPassword: {Ref: RabbitPassword}
         NovaInterfaces: {Ref: NovaInterfaces}
         NovaComputeDriver: {Ref: NovaComputeDriver}
index 8b2411e..55665dc 100644 (file)
@@ -39,6 +39,8 @@ Parameters:
     Type: String
   RabbitHost:
     Type: String
+  RabbitUserName:
+    Type: String
   RabbitPassword:
     Type: String
     NoEcho: true
@@ -189,4 +191,5 @@ Resources:
       admin-password: {Ref: AdminPassword}
       rabbit:
         host: {Ref: RabbitHost}
+        username: {Ref: RabbitUserName}
         password: {Ref: RabbitPassword}
index 77b4c52..2bec12f 100644 (file)
@@ -115,6 +115,15 @@ Parameters:
   NtpServer:
     Type: String
     Default: ''
+  RabbitUserName:
+    Default: guest
+    Description: The username for RabbitMQ
+    Type: String
+  RabbitPassword:
+    Default: guest
+    Description: The password for RabbitMQ
+    Type: String
+    NoEcho: true
   StaticHosts:
     Default:
       Fn::Join:
@@ -197,7 +206,6 @@ Resources:
             Ref: HypervisorNeutronPublicInterface
         NeutronBridgeMappings:
             Ref: NeutronBridgeMappings
-        RabbitPassword: "guest"
         StaticHosts:
             Ref: StaticHosts
   NovaCompute0:
@@ -388,7 +396,10 @@ Resources:
               - Fn::GetAtt:
                 - notCompute0
                 - networks
-        password: guest
+        username:
+          Ref: RabbitUserName
+        password:
+          Ref: RabbitPassword
       ntp:
         servers:
             - {server: {Ref: NtpServer}, fudge: "stratum 0"}
index 9c49e65..72a5beb 100644 (file)
@@ -57,6 +57,15 @@ Parameters:
     Description: The password for the nova service account, used by nova-api.
     Type: String
     NoEcho: true
+  RabbitUserName:
+    Default: guest
+    Description: The username for RabbitMQ
+    Type: String
+  RabbitPassword:
+    Default: guest
+    Description: The password for RabbitMQ
+    Type: String
+    NoEcho: true
 Resources:
   AccessPolicy:
     Properties:
@@ -165,7 +174,10 @@ Resources:
           Ref: NeutronPassword
       rabbit:
         host: 127.0.0.1
-        password: guest
+        username:
+          Ref: RabbitUserName
+        password:
+          Ref: RabbitPassword
   undercloud:
     Type: OS::Nova::Server
     Properties: