On Wed, 20 Mar 2013 09:17:33 +0100
Arthur Lutz <
arthu...@logilab.fr> wrote:
> Hi list,
>
> Does anyone know a way of watching multiple files in a directory in the
> "watch" directive ?
>
> For example : if the highstate adds or modifies a file in
> /etc/apt/sources.d/ do "apt-get update"
There is only one way - list all files which you want to watch:
watch:
- file: /etc/apt/sources.d/a
- file: /etc/apt/sources.d/b
- file: /etc/apt/sources.d/c
It's because requisite (watch, require) doesn't look
at file or directory (etc) literally, it looks at state
which has id occasionally looks like file name you want
to watch.
>
> I would need this with cmd.run (since I'd like to apply it to
> backuppc/munin/shinken/monit)
>
> We've tried some stuff with extend and watching multiple explicitly
> defined files but it doesn't seem to work the way we expect it.
>
> If this is not possible I'd be happy to add a ticket. Thanks in advance.
>
> Arthur
>
> --
> Arthur Lutz - LOGILAB, Paris (France).
> Formations -
http://www.logilab.fr/formations/
> Développements -
http://www.logilab.fr/services/
> Plateforme Web Sémantique -
http://www.cubicweb.org/
>
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Denis Generalov <
gian...@gmail.com>