<\/p>\n\r\n\/some_class\/ or some::other::class or fact=value\r\n<\/pre>\n<\/code><\/p>\n
But this expensive network wide discovery is only run when there are facts or classes matched out of the commit.<\/p>\n
Line 72 will supply the combined MCollective discovered nodes and node names discovered out of the code paths as discovery data which later in line 85 will get used to trigger the runs.<\/p>\n
The end result of this can be seen here, the commit matched only 5 out of my 25 machines and only those will be run:<\/p>\n
<\/p>\n\r\n$ git push origin master\r\nCounting objects: 13, done.\r\nDelta compression using up to 4 threads.\r\nCompressing objects: 100% (6\/6), done.\r\nWriting objects: 100% (7\/7), 577 bytes, done.\r\nTotal 7 (delta 4), reused 0 (delta 0)\r\nremote: Commit on master\r\nremote: common\/modules\/mcollective\/manifests\/client.pp\r\nremote:\r\nremote: Files matched classes: mcollective::client\r\nremote:\r\nremote: Triggering puppet runs on the following nodes:\r\nremote:\r\nremote: node1 node2 node3\r\nremote: node4 node5\r\nremote:\r\nremote: 5 \/ 5\r\nremote:\r\nremote: Finished processing 5 \/ 5 hosts in 522.15 ms\r\nTo git@git:puppet.git\r\n 7590a60..10ee4da master -> master\r\n<\/pre>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"
Since shutting down my business I now run a small 25 node network with no Puppet Masters and I do not schedule regular Puppet runs – I run them just when needed. Till now I’ve just done puppet runs via MCollective, basically I’d edit some puppet files and after comitting them just send off a […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[94,78,21,13],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/2529"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=2529"}],"version-history":[{"count":21,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/2529\/revisions"}],"predecessor-version":[{"id":2551,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/2529\/revisions\/2551"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=2529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=2529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=2529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}