On Jan 6, 2009, at 5:49 AM, Grzegorz Marszałek wrote:

>
> Hello
>
> When I run this with puppet 0.24.7 (puppet --debug test2.pp):
>
> File { backup => false }
>
> define cfile {
>   tag("$name")
>   file { "/tmp/cfile_$name": content => "test" }
>   file { "/tmp/dfile_$name": content => "test" }
> }
> @cfile { "s1":  }
> @cfile { "s2":  }
> @cfile { "s3":  }
> Cfile <| tag=="s1"  |>
>
> nothing happens, while this works as expected (only cfile with "s1"
> tag is realized):
>
> File { backup => false }
>
> define cfile {
>   tag("$name")
>   file { "/tmp/cfile_$name": content => "test" }
>   file { "/tmp/dfile_$name": content => "test" }
> }
> @cfile { "s1":  tag=>"s1" }
> @cfile { "s2":  tag=>"s2" }
> @cfile { "s3":  tag=>"s3" }
> Cfile <| tag=="s1"  |>
>
> So, how exactly tag function is working? After reading documentation I
> assume that it should do the trick and first example should work.

I don't really understand your question; these two snippets seem  
identical.

You're saying, though, that even the s1 cfile isn't showing up on your  
client?

I'm not actually positive of the state of tagging in the language  
ATM.  Try it with 'tags => $name' on the resource; I don't think the  
resource tags and language tags have been entirely unified, depending  
on the release.

And if you're running 0.24.7 (or are willing to test on it and it  
still fails), please file a bug if one hasn't been filed.

-- 
I take my children everywhere, but they always find their way
back home. --Robert Orben
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to