Refactor allNodesConfig
authorJiri Stransky <jistr@redhat.com>
Wed, 25 Mar 2015 13:30:01 +0000 (14:30 +0100)
committerJiri Stransky <jistr@redhat.com>
Wed, 25 Mar 2015 13:36:11 +0000 (14:36 +0100)
* Create hiera file 'all_nodes' instead of 'rabbit' -- we'll want
  allNodesConfig to create keys for more services (e.g. mongo_node_ips)
  and it's not necessary to create a separate hiera file for each.

* Rename rabbit_nodes to mongo_node_names -- we'll have more node lists,
  some services will need hostnames, some services will need IPs, some
  might need both, so we shouldn't have ambiguity in the hiera key
  names.

Change-Id: If80f9c9b2849ae893e1ab78f1c4d246a2468665c

puppet/all-nodes-config.yaml
puppet/controller-puppet.yaml
puppet/manifests/overcloud_controller.pp

index c5193e7..7fca449 100644 (file)
@@ -46,9 +46,9 @@ resources:
           net.ipv4.tcp_keepalive_intvl: 1
         hiera:
           datafiles:
-            rabbit:
+            all_nodes:
               mapped_data:
-                rabbit_nodes:
+                rabbit_node_names:
                   list_join:
                   - ','
                   - {get_param: controller_names}
index 8b576bf..a013fa1 100644 (file)
@@ -599,10 +599,10 @@ resources:
             - controller
             - object
             - swift_devices_and_proxy # provided by SwiftDevicesAndProxyConfig
-            - rabbit # provided by allNodesConfig
             - ceph_cluster # provided by CephClusterConfig
             - ceph
             - bootstrap_node # provided by BootstrapNodeConfig
+            - all_nodes # provided by allNodesConfig
             - common
           datafiles:
             common:
index 4136303..bad5fdb 100644 (file)
@@ -116,7 +116,7 @@ if hiera('step') >= 2 {
   Class['rabbitmq'] -> Rabbitmq_user <| |>
   Class['rabbitmq'] -> Rabbitmq_user_permissions <| |>
 
-  $rabbit_nodes = split(downcase(hiera('rabbit_nodes', $::hostname)), ',')
+  $rabbit_nodes = split(downcase(hiera('rabbit_node_names', $::hostname)), ',')
   if count($rabbit_nodes) > 1 {
     $rabbit_cluster = true
   }