Resource collector problem

101 views
Skip to first unread message

Dan White

unread,
Dec 28, 2012, 10:46:01 AM12/28/12
to Pupper Users Mailing List
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)

jcbollinger

unread,
Jan 2, 2013, 11:26:46 AM1/2/13
to puppet...@googlegroups.com


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
 

Andy Parker

unread,
Jan 2, 2013, 3:05:07 PM1/2/13
to puppet...@googlegroups.com
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.pp
Notice: 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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Dan White

unread,
Jan 2, 2013, 3:28:50 PM1/2/13
to puppet...@googlegroups.com
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)

Reply all
Reply to author
Forward
0 new messages