Skip to content

Commit

Permalink
Partial-Bug: #1478101 - Heat Encryption Key set incorrectly
Browse files Browse the repository at this point in the history
The Parameter heat_encryption_key has been added to cluster params
If this value is not set, the default value used by heat internally is used instead

Change-Id: I3a94b0c24b89873fa5db94c75d32ec9364c57b5a
  • Loading branch information
nitishkrishna committed Oct 10, 2015
1 parent d5ac457 commit da7988c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openstack_hieradata.py
Expand Up @@ -81,7 +81,7 @@
######## Heat
openstack::heat::password: '$__openstack_password__'
openstack::heat::encryption_key: ''
openstack::heat::encryption_key: '$__heat_encryption_key__'
######## Horizon
openstack::horizon::secret_key: '$__openstack_password__'
Expand Down
4 changes: 3 additions & 1 deletion src/server_mgr_puppet.py
Expand Up @@ -588,6 +588,7 @@ def build_openstack_hiera_file(
mysql_root_password = cluster_params.get("mysql_root_password", "c0ntrail123")
keystone_admin_token = cluster_params.get("service_token", "contrail123")
keystone_admin_password = cluster_params.get("keystone_password", "contrail123")
heat_encryption_key = cluster_params.get("heat_encryption_key", "notgood but just long enough i think")
subnet_address = str(IPNetwork(
openstack_ip + "/" + subnet_mask).network)
subnet_octets = subnet_address.split(".")
Expand All @@ -606,7 +607,8 @@ def build_openstack_hiera_file(
'__keystone_admin_token__': keystone_admin_token,
'__keystone_admin_password__': keystone_admin_password,
'__mysql_allowed_hosts__': (', '.join("'" + item + "'" for item in mysql_allowed_hosts)),
'__openstack_password__': keystone_admin_password
'__openstack_password__': keystone_admin_password,
'__heat_encryption_key__': heat_encryption_key
}
data = openstack_hieradata.template.safe_substitute(template_vals)
outfile = open(hiera_filename, 'w')
Expand Down

0 comments on commit da7988c

Please sign in to comment.