Verified Commit 5ec07756 authored by lelutin's avatar lelutin
Browse files

howto/cumin: add examples for negation and structured facts

parent 2a365326
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -66,6 +66,14 @@ will run the same command only on physical hosts:

    cumin 'F:virtual=physical' uptime

You can invert a condition by placing 'not ' in front of it. Also for facts,
you can retrieve structured facts using puppet's dot notation (e.g.
'networking.fqdn' to check the fqdn fact). Using these two techniques the
following example will run a command on all hosts that have not yet been
upgraded to bookworm:

    cumin 'not F:os.distro.codename=bookworm' uptime

Just check the monitoring server:

    cumin 'R:class=roles::monitoring' uptime