josh
03/15/2024, 4:38 PMpuppet resource <type> <typo>
application makes sense, to require the instance to exist, like absence/exists flags @David Sandilands and @Lumiere mentioned.emerson_prado
03/16/2024, 4:18 PMyamlfile
, file `lib/puppet/provider/yaml_setting/mapped.rb`:
require 'puppetx/filemapper'
This required library is, in fact, in module filemapper
.
Is this valid code or can I blame the error on this? My 2 cent is that it would be valid at the time.
* Yes, I know how flawed this is. Unfortunately, I don't have a say on that.emerson_prado
03/16/2024, 6:30 PMYehuda Katz
03/25/2024, 2:39 AMseeking_info
03/27/2024, 3:33 AMcanihavethisone
03/31/2024, 2:01 AMbastelfreak
04/02/2024, 2:44 PMjosh
04/02/2024, 2:52 PMbastelfreak
04/02/2024, 2:56 PMbastelfreak
04/02/2024, 2:56 PMcsharpsteen
04/02/2024, 3:35 PMalias()
and lookup()
to me. There would be no reason to have two different functions if they both did the same thing.csharpsteen
04/02/2024, 3:37 PM•- looks up a key using Hiera, and interpolates the value into a stringlookup
•https://www.puppet.com/docs/puppet/8/hiera_merging#interpolation_functions- looks up a key using Hiera, and uses the value as a replacement for the enclosing string.alias
bastelfreak
04/02/2024, 3:38 PMlookup()
?csharpsteen
04/02/2024, 3:39 PMcsharpsteen
04/02/2024, 3:42 PMalias()
and lookup()
in general. They make it too easy to dig yourself into a hole of complexity.bastelfreak
04/02/2024, 3:44 PMYury Bushmelev
04/02/2024, 4:27 PMliteral()
to accept more than just %
would be useful.. e.g. one person was trying to store a ZSH prompt string in a Hiera key: "%{$fg[red]%}%?%{$reset_color%}"
. Imagine amount of literal()
one need to write here.. It’d be nice if literal()
would just pass it’s argument as is w/o interpolation.. not sure if it’s possible easily from the Hiera side though..woolfy
04/04/2024, 6:14 PMadmins:
- 'bob'
- 'susan'
devs:
- 'mike'
- 'woo'
Is there a transformation to get following data structure
groups:
admins:
- 'bob'
- 'susan'
devs:
- 'mike'
- 'woo'
Lumiere
04/04/2024, 6:29 PMLumiere
04/04/2024, 6:29 PMYury Bushmelev
04/05/2024, 2:58 PMfind
function which breaks the loop after the first entry found.. I know there is an implementation in @helindbe’s tahu
module.. but I’d prefer to have it as a builtin one.Yury Bushmelev
04/05/2024, 2:59 PMYury Bushmelev
04/05/2024, 3:02 PMany()
but returning the value found instead of true
Yury Bushmelev
04/05/2024, 3:04 PMbreak()
would be allowed to return a value, that can work it aroundYury Bushmelev
04/05/2024, 3:05 PMreturn()
should do that.. but I cannot make it working somehow 🤔Yury Bushmelev
04/05/2024, 3:06 PMreturn() from context where this is illegal
for each()
and map()
Yury Bushmelev
04/05/2024, 3:07 PMreturn
description is wrong:
return
Makes iteration continue with the next value, optionally with a given value for this iteration. If a value is not given it defaults to undef
Yury Bushmelev
04/05/2024, 3:15 PMpuppet apply -e '$x = Array([undef]); notice $x, $x.length'
Notice: Scope(Class[main]): [] 1
josh
04/11/2024, 6:16 AMNick Bertrand
04/18/2024, 4:25 AM