Puppet 3.0.2 I define a virtual user resource (@users::useraccount) with tags and then try to realize them with a resource collector (spaceship operator) Here''s the problem: If I have tag => [''test''], and then Users::Useraccount <| tag == ''test'' |> it works just fine. BUT ! if I have tag => [''test'',''maybe''], and then Users::Useraccount <| tag == ''test'' |> I get nothing. Suggestions ? Clues ? Did everyone have a nice Christmas / Hanukkah / Kwanza / WhatEver ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Friday, December 28, 2012 9:46:01 AM UTC-6, Ygor wrote:> > Puppet 3.0.2 > > I define a virtual user resource (@users::useraccount) with tags and then > try to realize them with a resource collector (spaceship operator) > > Here''s the problem: > > If I have > tag => [''test''], > > and then > Users::Useraccount <| tag == ''test'' |> > > it works just fine. > > BUT ! > > if I have > tag => [''test'',''maybe''], > and then > Users::Useraccount <| tag == ''test'' |> > > I get nothing. > > Suggestions ? Clues ? Did everyone have a nice Christmas / Hanukkah / > Kwanza / WhatEver ? >Looks like a bug to me. I suggest you file a ticket. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4ii-oF5ws2AJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, Jan 2, 2013 at 8:26 AM, jcbollinger <John.Bollinger@stjude.org>wrote:> > > On Friday, December 28, 2012 9:46:01 AM UTC-6, Ygor wrote: >> >> Puppet 3.0.2 >> >> I define a virtual user resource (@users::useraccount) with tags and then >> try to realize them with a resource collector (spaceship operator) >> >> Here''s the problem: >> >> If I have >> tag => [''test''], >> >> and then >> Users::Useraccount <| tag == ''test'' |> >> >> it works just fine. >> >> BUT ! >> >> if I have >> tag => [''test'',''maybe''], >> and then >> Users::Useraccount <| tag == ''test'' |> >> >> I get nothing. >> >> Suggestions ? Clues ? Did everyone have a nice Christmas / Hanukkah / >> Kwanza / WhatEver ? >> >I just tried out: @notify { "tagged": tag => ["test", "other"] } Notify <| tag == "test" |> and ran it with puppet 3.0.2 (ruby 1.8.7 and 1.9.3):> bundle exec puppet apply t.ppNotice: tagged Notice: /Stage[main]//Notify[tagged]/message: defined ''message'' as ''tagged'' Notice: Finished catalog run in 0.03 seconds Is there maybe something else that is going on here?> >> Looks like a bug to me. I suggest you file a ticket. > > > John > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/4ii-oF5ws2AJ. > > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Try Notify <| tag == "other" |> for me please. I will try it on my system as well. Another possibility that comes to mind: Users::Useraccount is a DEFINE. That could make the difference. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) ----- Original Message ----- From: "Andy Parker" <andy@puppetlabs.com> To: puppet-users@googlegroups.com Sent: Wednesday, January 2, 2013 3:05:07 PM Subject: Re: [Puppet Users] Re: Resource collector problem On Wed, Jan 2, 2013 at 8:26 AM, jcbollinger < John.Bollinger@stjude.org > wrote: On Friday, December 28, 2012 9:46:01 AM UTC-6, Ygor wrote: Puppet 3.0.2 I define a virtual user resource (@users::useraccount) with tags and then try to realize them with a resource collector (spaceship operator) Here''s the problem: If I have tag => [''test''], and then Users::Useraccount <| tag == ''test'' |> it works just fine. BUT ! if I have tag => [''test'',''maybe''], and then Users::Useraccount <| tag == ''test'' |> I get nothing. Suggestions ? Clues ? Did everyone have a nice Christmas / Hanukkah / Kwanza / WhatEver ? I just tried out: @notify { "tagged": tag => ["test", "other"] } Notify <| tag == "test" |> and ran it with puppet 3.0.2 (ruby 1.8.7 and 1.9.3):> bundle exec puppet apply t.ppNotice: tagged Notice: /Stage[main]//Notify[tagged]/message: defined ''message'' as ''tagged'' Notice: Finished catalog run in 0.03 seconds Is there maybe something else that is going on here? Looks like a bug to me. I suggest you file a ticket. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4ii-oF5ws2AJ . To post to this group, send email to puppet-users@googlegroups.com . To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com . For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en . -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.