VoxBot
05/20/2022, 1:10 PMVoxBot
05/20/2022, 1:10 PMVoxBot
05/20/2022, 1:13 PMVoxBot
05/20/2022, 1:14 PMVoxBot
05/20/2022, 1:15 PMAlex Fisher
05/20/2022, 1:18 PMaliasvalue(:installed, :present) but this isn't enough to stop a duplicate resource declaration).VoxBot
05/20/2022, 1:19 PMAlex Fisher
05/20/2022, 1:20 PMVoxBot
05/20/2022, 1:20 PMVoxBot
05/20/2022, 1:23 PMjhoblitt
05/20/2022, 4:11 PMjhoblitt
05/20/2022, 4:12 PMensure_packages should care about the value of the ensure parameter so long as it isn't absent. We probably need a replacement that introspects on the catalog.Alex Fisher
05/20/2022, 4:14 PMAlex Fisher
05/20/2022, 4:14 PMAlex Fisher
05/20/2022, 4:14 PMAlex Fisher
05/20/2022, 4:16 PMjhoblitt
05/20/2022, 4:17 PMAlex Fisher
05/20/2022, 4:18 PMjhoblitt
05/20/2022, 4:19 PMAlex Fisher
05/20/2022, 4:20 PMensure_resource in a loop or ensure_resourcesAlex Fisher
05/20/2022, 4:21 PMAlex Fisher
05/20/2022, 4:22 PMAlex Fisher
05/20/2022, 4:24 PMensure_packages('some_package', { 'ensure' => 'present' }) seems to crop up a lot in the code I get to deal with in my day job.jhoblitt
05/20/2022, 4:24 PMjhoblitt
05/20/2022, 4:25 PMAlex Fisher
05/20/2022, 4:26 PMAlex Fisher
05/20/2022, 4:33 PMpresent vs installed). Since we're already iterating, we do all the merging of default_attributes at this point instead of passing them to ensure_resources. Probably best to ignore any other parameters we could at this point find from an existing catalog resource, and just let the original duplicate declaration error hit if there were any that didn't match.jhoblitt
05/20/2022, 4:37 PMjhoblitt
05/20/2022, 4:37 PMAlex Fisher
05/20/2022, 4:43 PM