Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2019-01-04 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-1053  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Resource defaults and automatic tags are applied after collectors are evaluated   
 

  
 
 
 
 

 
 Martin Alfke I think that is a much better solution as it is not based on the order of tagging operations. Closing this ticket as a Won't Do.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2019-01-04 Thread Martin Alfke (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Alfke commented on  PUP-1053  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Resource defaults and automatic tags are applied after collectors are evaluated   
 

  
 
 
 
 

 
 Henrik Lindbergthank you for explanation. I found a solution using filter function on data hashes.  ``` $hash = { 'tom' =>  { uid => '1001', tag => ['admin'], } , 'ben' => { uid => '1100', tag => [ 'app1', 'app2', ] } } $admins = $hash.filter |$key, $value|  {   'admin' in $value['tag'] } $app1 = $hash.filter | $key, $value|  {   'app1' in $value['tag'] } $all_users = $admins.merge($app1) notify { "All users: ${all_users}": } ``` Fom my point of view we can close this ticket, as there now is a working solution available using Puppet lambda.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2019-01-02 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-1053  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Resource defaults and automatic tags are applied after collectors are evaluated   
 

  
 
 
 
 

 
 While we very much like to see a sane tagging system I don't see how we can change this without creating a total mess for users in general as it would break their code (lots of things would be tagged with tags they currently do not get and this would mean that there is plenty of opportunity for nasty surprises. It may be possible to add another tagging function that does tagging eagerly but that is not something we have looked into. To be begin with, I would like to see a spec for how we actually would want tags to work. As Charlie pointed out above how it currently works is not great.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2019-01-02 Thread Martin Alfke (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Alfke commented on  PUP-1053  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Resource defaults and automatic tags are applied after collectors are evaluated   
 

  
 
 
 
 

 
 Is there anything planned to fix this issue? Or provide a sane workaround? In my case we have accounts in hiera (using tag to set system roles). We would like to make use of this feature instead of adding users multiple times (into role hiera data).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2018-06-07 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-1053  
 
 
  Resource defaults and automatic tags are applied after collectors are evaluated   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP Future  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1053 
 
 
 
  Resource defaults and automatic tags are applied after collectors are evaluated  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 customer redmine  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2017-05-15 Thread John Duarte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Duarte updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1053 
 
 
 
  Resource defaults and automatic tags are applied after collectors are evaluated  
 
 
 
 
 
 
 
 
 

Change By:
 
 John Duarte 
 
 
 

Labels:
 
 customer redmine  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2016-09-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1053 
 
 
 
  Resource defaults and automatic tags are applied after collectors are evaluated  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Team:
 
 Puppet Developer Support 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2015-01-15 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-1053 
 
 
 
  Resource defaults and automatic tags are applied after collectors are evaluated  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Scrum Team:
 
 Language 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2014-06-16 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker updated an issue


















 Puppet /  PUP-1053



  Resource defaults and automatic tags are applied after collectors are evaluated 










Change By:

 Andy Parker




Fix Version/s:

 future












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2014-06-16 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker updated an issue


















 Puppet /  PUP-1053



  Resource defaults and automatic tags are applied after collectors are evaluated 










Change By:

 Andy Parker




Component/s:

 DSL












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2014-04-11 Thread Charlie Sharpsteen (JIRA)
Title: Message Title










 

 Charlie Sharpsteen commented on an issue


















  Re: Resource defaults and automatic tags are applied after collectors are evaluated 










Summary from 

PUP-22
:
Automatic tags and resource defaults are applied by the compiler during the finish stage which is executed after the evaluate_generators stage where collectors are evaluated. Additionally, the step that adds automatic_tags from parent scopes is not selective at all---it performs a wholesale copy of all tags. Therefore, a notify resource defined inside a class ends up tagged as both a class resource and a notify resource which is probably not the intended behavior as this makes it difficult to use tags to filter by resource type.












   

 Add Comment

























 Puppet /  PUP-1053



  Resource defaults and automatic tags are applied after collectors are evaluated 







 Resources (and virtual resources) are not having their classes declared tags correctly applied. (Add the specified tags to the containing class or definition. All contained objects will then acquire that tag, also. ref: http://docs.puppetlabs.com/references/latest/function.html#tag)   pre  class foo {  tag 'notworking'  notify { I'm untagged...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 

Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2014-04-11 Thread Charlie Sharpsteen (JIRA)
Title: Message Title










 

 Charlie Sharpsteen updated an issue


















 Puppet /  PUP-1053



  Resource defaults and automatic tags are applied after collectors are evaluated 










Change By:

 Charlie Sharpsteen









 Resources(andvirtualresources)arenothavingtheirclassesdeclaredtagscorrectlyapplied.(Addthespecifiedtagstothecontainingclassordefinition.Allcontainedobjectswillthenacquirethattag,also.ref:http://docs.puppetlabs.com/references/latest/function.html#tag) pre {code} classfoo{tag'notworking'notify{I'muntagged:}notify{I'mtagged:tag=notworking}}includefooNotify|tag==notworking|{message=Iamthough} /pre {code} Resultsin: pre {code} mauve/home/jboothpuppettagmagic.ppnotice:Iamthoughnotice://foo/Notify[I'mtagged]/message:defined'message'as'Iamthough'notice:I'muntaggednotice://foo/Notify[I'muntagged]/message:defined'message'as'I'muntagged' /pre {code} Youcanchangethe'tag==foo'andlifedoesn'tgetanybetter.Theneithernotifygetsthemessagechanged. pre {code} mauve/home/jboothtail-1tagmagic.ppNotify|tag==foo|{message=Iamthough}mauve/home/jboothpuppettagmagic.ppnotice:I'muntaggednotice://foo/Notify[I'muntagged]/message:defined'message'as'I'muntagged'notice:I'mtaggednotice://foo/Notify[I'mtagged]/message:defined'message'as'I'mtagged' /pre {code}












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit 

Jira (PUP-1053) Resource defaults and automatic tags are applied after collectors are evaluated

2013-12-16 Thread redmine.exporter (JIRA)
Title: Message Title










 

 redmine.exporter created an issue


















 Puppet /  PUP-1053



  Resource defaults and automatic tags are applied after collectors are evaluated 










Issue Type:

  Bug




Assignee:


 Unassigned




Created:


 16/Dec/13 5:36 AM




Labels:


 redmine customer




Priority:

  Normal




Reporter:

 redmine.exporter










Resources (and virtual resources) are not having their classes declared tags correctly applied. (Add the specified tags to the containing class or definition. All contained objects will then acquire that tag, also. ref: http://docs.puppetlabs.com/references/latest/function.html#tag)
pre class foo { tag 'notworking' notify  { I'm untagged: }
 notify  { I'm tagged: tag = notworking }
} include foo Notify | tag == notworking |  { message = I am though } /pre  Results in:  pre mauve /home/jbooth  puppet tagmagic.pp notice: I am though notice: //foo/Notify[I'm tagged]/message: defined 'message' as 'I am though' notice: I'm untagged notice: //foo/Notify[I'm untagged]/message: defined 'message' as 'I'm untagged' /pre  You can change the 'tag == foo' and life doesn't get any better. The neither notify gets the message changed.  pre mauve /home/jbooth  tail -1 tagmagic.pp  Notify | tag == foo | { message = I am though }
mauve /home/jbooth  puppet tagmagic.pp notice: I'm untagged notice: //foo/Notify[I'm untagged]/message: defined 'message' as 'I'm untagged' notice: I'm tagged notice: //foo/Notify[I'm tagged]/message: defined 'message' as 'I'm tagged' /pre