puppet: set heat-user using class parameter
authorDan Prince <dprince@redhat.com>
Sat, 7 Mar 2015 03:09:05 +0000 (22:09 -0500)
committerDan Prince <dprince@redhat.com>
Sat, 7 Mar 2015 03:09:05 +0000 (22:09 -0500)
The puppet-heat module just added a new class
parameter to help manage instance_user today in
I44fef59d3ed1f7851d8504855a7ae0d5460fdc84. This
actually broke us because we were setting it manually
via heat_config (puppet doesn't allow two settings).

Change-Id: Ib25e8de8ca3849701d506a5d0c956a6f3317ac8a
Closes-bug: #1429328

puppet/controller-puppet.yaml
puppet/manifests/overcloud_controller.pp

index 18c585d..fe03fbf 100644 (file)
@@ -632,6 +632,7 @@ resources:
                 heat::api_cloudwatch::bind_host: {get_input: controller_host}
                 heat::api_cfn::bind_host: {get_input: controller_host}
                 heat::database_connection: {get_input: heat_dsn}
                 heat::api_cloudwatch::bind_host: {get_input: controller_host}
                 heat::api_cfn::bind_host: {get_input: controller_host}
                 heat::database_connection: {get_input: heat_dsn}
+                heat::instance_user: heat-admin
 
                 # Keystone
                 keystone::admin_token: {get_input: admin_token}
 
                 # Keystone
                 keystone::admin_token: {get_input: admin_token}
index 23e8adf..d4faf34 100644 (file)
@@ -312,10 +312,6 @@ if hiera('step') >= 2 {
   include ::heat::api_cloudwatch
   include ::heat::engine
 
   include ::heat::api_cloudwatch
   include ::heat::engine
 
-  heat_config {
-    'DEFAULT/instance_user': value => 'heat-admin';
-  }
-
   $snmpd_user = hiera('snmpd_readonly_user_name')
   snmp::snmpv3_user { $snmpd_user:
     authtype => 'MD5',
   $snmpd_user = hiera('snmpd_readonly_user_name')
   snmp::snmpv3_user { $snmpd_user:
     authtype => 'MD5',