Always use parameter_defaults in environment files
authorJiri Stransky <jistr@redhat.com>
Fri, 8 Apr 2016 08:59:07 +0000 (10:59 +0200)
committerDan Prince <dprince@redhat.com>
Mon, 11 Apr 2016 18:15:39 +0000 (14:15 -0400)
In the environments/ subdirectory of tripleo-heat-templates, we mostly
use parameter_defaults, but some of the environment files still use
parameters. This can lead to confusing behavior with respect to
parameter priority when passing environment files to deploy/update
commands. Users might expect that subsequent environment files take
priority over preceding ones, but that might not be the case if the
preceding environment files use `parameters`, while the subsequent ones
use `parameter_defaults`.

This commit switches all `parameters:` uses in environments/
subdirectory to `parameter_defaults:`.

Change-Id: Ie4c03c7e7f5a5004a0384d35817135f357e9719b
Closes-Bug: #1567837

environments/docker.yaml
environments/manage-firewall.yaml
environments/mongodb-nojournal.yaml
environments/puppet-ceph-devel.yaml
environments/puppet-tenant-vlan.yaml
environments/updates/update-from-keystone-admin-internal-api.yaml

index be21d84..a7e2504 100644 (file)
@@ -3,7 +3,7 @@ resource_registry:
   OS::TripleO::ComputePostDeployment: ../docker/compute-post.yaml
   OS::TripleO::NodeUserData: ../docker/firstboot/install_docker_agents.yaml
 
-parameters:
+parameter_defaults:
   NovaImage: atomic-image
 
 parameter_defaults:
index 071f410..5d48698 100644 (file)
@@ -1,2 +1,2 @@
-parameters:
+parameter_defaults:
   ManageFirewall: true
index 1e13e45..92cef53 100644 (file)
@@ -1,5 +1,5 @@
 # A Heat environment file which can be used to disable journal in MongoDb.
 # Since, when journaling is enabled, MongoDb will create big journal file
 # it can take time. In a CI environment for example journaling is not necessary.
-parameters:
+parameter_defaults:
   MongoDbNoJournal: true
index fb63af6..a2d1100 100644 (file)
@@ -1,7 +1,7 @@
 # A Heat environment file which can be used to enable a Ceph
 # storage cluster using the controller and ceph nodes.
 # Rbd backends are enabled for Cinder, Glance, Gnocchi and Nova.
-parameters:
+parameter_defaults:
   #NOTE: These ID's and keys should be regenerated for
   # a production deployment. What is here is suitable for
   # developer and CI testing only.
index 0df63ca..ed948bc 100644 (file)
@@ -1,4 +1,4 @@
-parameters:
+parameter_defaults:
   NeutronNetworkType: vlan
   NeutronEnableTunnelling: false
-  NeutronNetworkVLANRanges: datacentre:1:1000
\ No newline at end of file
+  NeutronNetworkVLANRanges: datacentre:1:1000
index 3c71ef1..a9fa2be 100644 (file)
@@ -1,7 +1,7 @@
 # This environment file provides a default value for ServiceNetMap where
 # Keystone Admin API service is running on the Internal API network
 
-parameters:
+parameter_defaults:
   ServiceNetMap:
     NeutronTenantNetwork: tenant
     CeilometerApiNetwork: internal_api