Issue #14238 has been reported by Cody Herriges.

----------------------------------------
Bug #14238: composite namevars require your separator in title even when 
unneeded.
https://projects.puppetlabs.com/issues/14238

Author: Cody Herriges
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.7.12
Keywords: 
Branch: 


Currently the title of a resource with composite namevars must have the defined 
component separator even if the components of the title are not going to map to 
parameters.  In the following two examples I would expect a an entry in a java 
keystore created with an alias broker.example.com.

If I have this code I will get the same merge error I have seen in ticket 
#14210.
<pre>
java_ks { 'my_broker_cert':
  name        => 'broker.example.com',
  ensure      => latest,
  certificate => 
"/etc/puppetlabs/puppet/ssl/certs/ha-console.vm.vmware.pe-internal-broker.pem",
  private_key => 
"/etc/puppetlabs/puppet/ssl/private_keys/ha-console.vm.vmware.pe-internal-broker.pem",
  target      => '/tmp/broker.ks',
  password    => 'puppet',
}
</pre>
If I use this slightly modified code I get the results as the previous example 
but with out the error. (I replaced one of the underscores with a colon)  In 
both situations the mapping from title to parameters it unneeded because I have 
defined both parameters they map to, name and target.
<pre>
java_ks { 'my_broker:cert':
  name        => 'broker.example.com',
  ensure      => latest,
  certificate => 
"/etc/puppetlabs/puppet/ssl/certs/ha-console.vm.vmware.pe-internal-broker.pem",
  private_key => 
"/etc/puppetlabs/puppet/ssl/private_keys/ha-console.vm.vmware.pe-internal-broker.pem",
  target      => '/tmp/broker.ks',
  password    => 'puppet',
}
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to