Loading howto/cumin.md +8 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
howto/cumin.md +8 −0 Original line number Diff line number Diff line Loading @@ -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 Loading