Project

General

Profile

Statistics
| Branch: | Tag: | Revision:
Name Size
  doc_templates
  scope
  source
base_renderer.rb 930 Bytes
configuration.rb 3.77 KB
errors.rb 2.35 KB
safe_mode_renderer.rb 522 Bytes
scope.rb 68 Bytes
source.rb 69 Bytes
unsafe_mode_renderer.rb 451 Bytes

Latest revisions

# Date Author Comment
ea998f89 05/25/2023 08:21 PM Jeremy Lenz

Fixes #36426 - Introduce human-readable host statuses

405971f2 03/09/2023 02:23 PM Leos Stejskal

Fixes #36153 - host_puppet_environment ignores host param

If host responds to :environment, it always returns
value of the :environment, ignoring the :puppet_environment
host parameter.

Correct behavior is to check if :environment is set,
and if not, then return the value of host parameter....

5537d830 11/28/2022 01:57 PM Sayan Das

Refs #35530 - Dont use shellescape on the filename

57fe1821 10/31/2022 11:24 AM Adam Ruzicka

Fixes #35694 - Add foreman product version macro

1b245d59 10/25/2022 01:37 PM Leos Stejskal

Fixes #35536 - Template input_resource macro & preview error (#9428)

767fea26 10/04/2022 01:13 PM Adam Ruzicka

Refs #35530 - Alternative approach to save_to_file

save_to_macro generates a command using cat and a heredoc string.
However, if the content to be written contains a heredoc using the same
delimiter, save_to_macro's heredoc will be terminated by it, leading to...

38365d82 09/26/2022 02:32 PM Adam Ruzicka

Fixes #35530 - Make save_to_file macro safer (#9426)

  • Fixes #35530 - Make save_to_file macro safer

save_to_file does

cat <<EOF >$file
$content
EOF

but if `$content` contains a heredoc terminated with `EOF`, it
terminates the heredoc that save_to_file creates....

9089087e 09/12/2022 10:51 AM Ewoud Kohl van Wijngaarden

Fixes #35300 - Pass keyword arguments correctly (#9332)

In Ruby 3.0 keyword arguments are handled separate from positional
arguments1. This uses kwargs and passes it along.

[1]: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

eebd309f 08/03/2022 12:46 PM Leos Stejskal

Fixes #35306 - host_puppet_* template macros ignores host_param (#9334)

When host.puppet_server or host.puppet_ca_server returns
empty string we don't load the values from host parameters.

1948651d 08/02/2022 11:18 AM Ewoud Kohl van Wijngaarden

Fixes #35298 - Pass trim_mode as a keyword argument

Ruby 2.6 introduced the keyword argument and Ruby 3.1 raises deprecation
warnings about this.

View revisions

Also available in: Atom