Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

ressource tidy does not notify exec ressource at all

$
0
0
Hi, I have some `tidy`+`notify` code which looks like this: tidy { '/parent-path-tidy-should-do-something': recurse => 3, matches => [ 'search-string1', 'search-string2', 'search-string3'], rmdirs => false, notify => [ Exec['my-exec1'], Exec['my-exec2'] ]; } exec {'my-exec1': cwd => '/sbin', path => '/sbin', command => 'my-command1', refreshonly => true, } exec {'my-exec2': cwd => '/sbin', path => '/sbin', command => 'my-command2', refreshonly => true, } It can also be tested with one `exec`, but this was already discussed in [another question I posted](https://ask.puppet.com/question/32174/notify-two-exec-resources-or-better-use-subcribe/) so it should basically work. Now I checked the logs after manual puppet run (`puppet agent --test`) and I saw that it does not really `notify` my `exec`s after executing `tidy` ressource. Log looks like this: Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for Notice: /Stage[main]/::/Tidy[]: Tidying File[] Notice: /Stage[main]/::/Tidy[]: Tidying File[] Notice: /Stage[main]/::/Tidy[]: Tidying File[] ... ... -> more tidying log entries <- Info: Applying configuration version '' Notice: /Stage[main]/::/File[]/ensure: removed Notice: /Stage[main]/::/File[]/ensure: removed Notice: /Stage[main]/::/File[]/ensure: removed ... ... -> more tidy related file log entries <- Notice: /Stage[main]/::/File[]/ensure: defined content as '{md5}e585d4b0105e6fdbea479beff2505133' ... ... So after the last `tidy` related `file`-ensure-removed-log-entry I expected the `notify`/`exec`. E.g . like in the linked question: Notice: /Stage[main]/Main/Exec[my-exec1]: Triggered 'refresh' from 1 events Notice: /Stage[main]/Main/Exec[my-exec2]: Triggered 'refresh' from 1 events But it does not happen. :-/ I don't see my mistake and I was wondering why the `notify` does not work? Is there anybody out there who can help me with this? Any way to debug this? `tidy` works perfect here for me only the `notify` is missing. Thanks in advance

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>