Issue #2246 has been updated by Brice Figureau.

It seems to me to be a design limitation of the collexpr code.
See in lib/puppet/parser/collexpr.rb, where the proc used for the query 
specifically forbid array arguments in the exported case.

Note: I also noticed that the tags defined by "tag" are not added as real tag 
to the resource, and when producing the rails query we don't check tags 
explicitely (we're abusing parameters as if they where tags). 
----------------------------------------
Bug #2246: Exported resources with multiple tags not working
http://projects.reductivelabs.com/issues/2246

Author: Ben -
Status: Accepted
Priority: Normal
Assigned to: 
Category: Rails
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


The following examples do not work and i would expect them too.

example 1:
<pre>
# Export resource test w/ multiple tags.
@@file { "/tmp/test-${fqdn}": content => "test ${fqdn}",
                              tag => [ "exp-res-test-${fqdn}", 
"exp-res-test-${domain}", "exp-res-test-all" ];
}
File<<| tag == "exp-res-test-${fqdn}" |>>
</pre>

On examining the database the resource is created and exported but none of the 
requested tags are created, only the autotags.

example 2:
<pre>
# Export resource test w/ multiple tags using a define.
define exp-res-test () {
  tag("exp-res-test-${fqdn}")
  tag("exp-res-test-${domain}")
  tag("exp-res-test-all")

  @@file { "/tmp/test-${fqdn}": content => "test ${fqdn}"; }
}
exp-res-test { testing: }
File<<| tag == "exp-res-test-${fqdn}" |>>
</pre>

Looking at the database for this one things are looking better, the resource is 
created, exported and all the requested tags are associated with it but the 
resource is not realized by the 'File<<| tag == "exp-res-test-${fqdn}" |>>' and 
the file is never created.


-- 
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://reductivelabs.com/redmine/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