Here is a similar example using notify

====== site.pp ======
node default {
  include noticegroups::matches
}
====== modules/noticegroups/manifests/matches.pp ======
class noticegroups::matches {
  include notices
  Notices::Anotice <| tag == matches |>
}
====== modules/notices/manifests/anotice.pp ======
define notices::anotice {
  notify { $title: }
}
====== modules/notices/manifests/data.pp ======
class notices::data {
  @notices::anotice { 'meant to be made': tag=>['matches'], }
  @notices::anotice { 'NOT meant to be made': tag=>['doesnotmatch'], }
}
====== modules/notices/manifests/init.pp ======
class notices {
  include notices::data
}

with that I get the behaviour I expect in puppet 3.6 and broken in 3.7

if I change class noticegroups::matches to noticegroups::iwantmatches then
only the resource I want gets realized

this just seems like 3.7 broke something to me

On 7 April 2015 at 11:34, Neil - Puppet List <
[email protected]> wrote:

> Hello
>
> I'm upgrading from 3.6 to 3.7 and have it a issue/bug
>
> I'm using users/groups but to keep it short and something others can run
> without the mess of users being made I've made up a file example
>
> ====== modules/filegroups/manifests/matches.pp =======
> class filegroups::matches {
>   include files
>   Files::Afile <| tag == matches |>
> }
> ====== modules/files/manifests/afile.pp =======
> define files::afile {
>   file { $title: ensure=>present, content=>'hello', }
> }
> ====== modules/files/manifests/data.pp =======
> class files::data {
>   @files::afile { '/tmp/meanttobemade': tag=>['matches'], }
>   @files::afile { '/tmp/notmeanttobemade': tag=>['doesnotmatch'], }
> }
> ====== modules/files/manifests/init.pp =======
> class files {
>   include files::data
> }
> ====== site.pp =======
> node default {
>   include filegroups::matches
> }
>
> makes both files
> Notice:
> /Stage[main]/Files::Data/Files::Afile[/tmp/notmeanttobemade]/File[/tmp/notmeanttobemade]/ensure:
> created
>
>
> If I rename modules/filegroups/manifests/matches.pp
> to  modules/filegroups/manifests/iwantmatches.pp (and change the first line)
> or rename the tag I get the desired behaviour
>
> Anyone else seen this? Is this a bug?
>
> There is a matching old question at askpuppetlabs
> https://ask.puppetlabs.com/question/14349/upgrade-to-371-causes-resource-collectors-to-realize-everything/
> that I've chipped in on the end off
>
> Thanks,
>
> Neil
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAohVBd7X0eh-Ed6Pg%3DLC_Peezp5XdFokcNZp-YeXMLWbEAcnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to