rismoney
08/11/2023, 7:26 PMLumiere
08/11/2023, 7:30 PMLumiere
08/11/2023, 7:30 PMLumiere
08/11/2023, 7:30 PMDr Bunsen Honeydew
08/11/2023, 7:30 PMpuppetlabs-stdlib
module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=puppetrismoney
08/11/2023, 7:32 PMLumiere
08/11/2023, 7:33 PMLumiere
08/11/2023, 7:34 PMSlackbot
08/12/2023, 2:44 PMemerson_prado
08/12/2023, 7:30 PMget
method?
I need to limit the get
method to retrieve a single resource - as opposed to all resources from the custom type. Other resources aren't needed, and querying all of them is quite costly.
I can do it in the low level method, but wanted to make sure it isn't overkill.emerson_prado
08/12/2023, 7:32 PMSlackbot
08/12/2023, 10:22 PMSlackbot
08/14/2023, 7:43 AMrichard li
08/14/2023, 7:58 AMSlackbot
08/14/2023, 7:58 AMSlackbot
08/14/2023, 8:33 AMSlackbot
08/14/2023, 12:15 PMvchepkov
08/14/2023, 12:54 PM$servers_query = 'resources[certname]{ type = "Class" and title = "Some::Profile" }'
$servers = puppetdb_query($servers_query).map |$value| { $value['certname'] }
Server classification is static, so not sure, why would that be the case. Doesn't happen often, like 4-5 times a month, but enough to trigger my inner-sheldonCVQuesty
08/14/2023, 1:05 PMbastelfreak
08/14/2023, 1:09 PMvchepkov
08/14/2023, 1:10 PMvchepkov
08/14/2023, 1:11 PMvchepkov
08/14/2023, 1:13 PMvchepkov
08/14/2023, 1:14 PMvchepkov
08/14/2023, 1:14 PMbastelfreak
08/14/2023, 1:18 PMbastelfreak
08/14/2023, 1:18 PMbastelfreak
08/14/2023, 1:18 PMvchepkov
08/14/2023, 1:19 PM