Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
7a77b3ce 04/23/2024 11:28 AM Bernhard Suttner

Fixes #36691 - use 'connectefi scsi' by default

Co-Authored-by: Shimon Shtein <>
Co-Authored-by: Ewoud Kohl van Wijngaarden <>

ca34010f 04/19/2024 06:59 AM Shimon Shtein

Fixes #37367 - Switch to 'network' directive instead of ifcfg

bf03a259 04/17/2024 06:15 AM Pat Riehecky

Fixes #36525 - kickstart's RHSM line only works on RHEL hosts

98d3bf5b 04/15/2024 12:09 PM Jan Loeser

Fixes #36885 - Add Clevis/Tang disk encryption template

For disk encryption Clevis/Tang is often used. This commit introduces
partition templates for Kickstart and Autoinstall taking care of disk
encryption and a snippet responsible for binding the LUKS device via...

f87b1a25 04/15/2024 08:28 AM Leos Stejskal

Fixes #37337 - Fix snapshot task and add Rocky 8 & 9

05f60ce3 03/14/2024 01:05 PM Jeremy Lenz

Fixes #37065 - report_row now explicitly accepts kwargs
also adds a test which fails without the fix

2836e938 03/01/2024 09:47 AM Bastian Schmidt

Fixes #37011 - Apply latest Ubuntu Autoinstall userdata changes

  • Add explicit fallback for offline installation
  • Replace deprecated lock-passwd with lock_passwd
  • Remove empty ssh keys array if none provided
459f70c4 02/26/2024 09:53 AM Hao Yu

Fixes #37184 - Report template generates incorrect kernel version

1935cea4 02/26/2024 08:11 AM Evgeni Golov

Refs #36502 - update snapshots after template change

9e427bdc 01/03/2024 11:14 AM Ewoud Kohl van Wijngaarden

Fixes #37019 - Correct release names in OS factories

4e205ba1 10/04/2023 07:06 AM Ewoud Kohl van Wijngaarden

Fixes #36723 - Remove Fedora/Red Hat Atomic related code

As far as I can see this has been EOL for a few years now. Red Hat
Atomic went EOL in 2021.

d430f3fb 09/28/2023 10:19 AM Evgeni Golov

Fixes #36759 - only call allowed transpilers

CVE-2022-3874: OS command injection via ct_command and fcct_command

Instead of allowing to call any command by changing a setting, only
allow specific paths to ct/fcct. If the user needs a different path,
they can set it via settings.yaml.

0f1d1426 08/23/2023 06:41 AM Jonas Trüstedt

Fixes #35124 - Fix preseed_kernel_options to work with full-host-bootdisk deployments

Update corresponding template snapshots.

Co-authored-by: Bastian Schmidt <>

70c0992a 08/22/2023 07:03 PM Bernhard Suttner

Refs #36677 - fix tests

fb76d77a 08/08/2023 12:16 PM Ewoud Kohl van Wijngaarden

Fixes #36639 - Use Templates feature on IPv6

This now looks at, and prefers, the IPv6 subnet on the
provision_interface to determine the template proxy. This allows using
the Templates feature in pure IPv6 provisioning setups.

68bacee5 06/09/2023 01:44 PM wlma please_edit_me

Fixes #36490 - Remove redundant ERB closing tag in coreos template

Refs #36490 - Regenerate template snapshots

29e1c27b 06/08/2023 11:48 AM Mike Rochefort

Fixes #36189 - Add AlmaLinux UEFI provisioning support

In pxegrub2_chainload.erb various paths are tried, but the
/EFI/almalinux/grubx64.efi path is missing. This causes the server
to refuse to boot.

To make it easier to use the AlmaLinux installation medium is added.

c4b515d6 05/10/2023 07:35 AM Damon Maria

Fixes #36180 - iPXE provisioning template for Ubuntu autoinstall

5c3cfef8 01/30/2023 10:15 AM Leos Stejskal

Fixes #36014 - Kickstart default - remove @core group

The Core group is always selected, it is not necessary to
specify it in the %packages section.

f3af7ab4 01/22/2023 11:38 AM Leos Stejskal

Fixes #35840 - Install chrony on RHEL 7

a0dae9e5 12/05/2022 03:20 PM Marcel Kuehlhorn

Fixes #35286 - New PXEGrub2 template for Ubuntu Autoinstall

- Introduce new PXEGrub2 Autoinstall template
- Move network configuration out of PXELinux Autoinstall template to
new preseed_kernel_options_autoinstall snippet
- Add snapshot for preseed_kernel_options_autoinstall...

1117630b 12/03/2022 01:41 PM Ewoud Kohl van Wijngaarden

Refs #35796 - Reduce empty lines

In 699b7a3b4e9069237031b2dfbee8dba2bbaadf8c an additional empty line was
generated which broke the snapshots. This takes it a step further and
also removes various other lines in the generated output.

Fixes: 699b7a3b4e9069237031b2dfbee8dba2bbaadf8c

eaf0052b 12/01/2022 12:40 PM Bernhard Suttner

Fixes #35674 - Add more custom pre/post snippet hooks

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

Refs #35530 - Dont use shellescape on the filename

5339e9fd 11/04/2022 12:53 PM Marcel Kühlhorn

Fixes #35397 - Preseed Autoinstall incorporate host_params

  • Param 'keyboard' to set default layout
  • Param 'lang' to set default locale
  • Adapt template snapshot accordingly

Co-authored-by: Bastian Schmidt <>
Co-authored-by: Evgeni Golov <>

605fc8b1 10/31/2022 05:33 PM Bernhard Suttner

Fixes #35583 - Skip dhclient installation

The dhclient package isn't available on the minimal ISO image for >= EL8, therefore installation fails because it tries to install this package. The IP address is managed by network manager.

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

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

30c41d67 10/05/2022 07:33 AM Adam Ruzicka

Fixes #35547 - Include REX pull in kickstart default (#9430)

  • Fixes #35547 - Include REX pull in kickstart default
  • Refs #35547 - Output the snippet verbatim
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....

a321f97a 09/15/2022 09:49 AM Leos Stejskal

Fixes #35331 - Use Anaconda rhsm in kickstart for RHEL 9

06600bcc 09/09/2022 09:23 AM Pat Riehecky

Fixes #35137 - Permit setting puppet tag during install

6614d14b 09/09/2022 09:21 AM Pat Riehecky

Fixes #35177 - Option to switch to graphical kickstart

b382bbc9 09/02/2022 01:40 PM Jonas Trüstedt

Fixes #35166 - Enable static IP for Ubuntu Autoinstall

  • Make IP method flexible and enable to switch between DHCP and static
  • Make BOOTIF default for multi-network device setup
  • Remove unused parameters from options

Co-authored-by: Bastian Schmidt <>

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.

0c1f4041 07/12/2022 04:23 PM Garret Rumohr

Fixes #34975 - Removed ks=. is supplied by kernel options snippet (#9238)

  • Fixes #34975 - Removed ks= from template. It is supplied by kernel options snippet.
  • Refs #34975 - Update snapshots

Co-authored-by: garret <>
Co-authored-by: Oleh Fedorenko <>

38d2bf3c 07/12/2022 02:12 PM Ewoud Kohl van Wijngaarden

Fixes #35182 - Add Rocky Linux UEFI provisioning support

In pxegrub2_chainload.erb various paths are tried, but the
/EFI/rocky/grubx64.efi path is missing. This causes the server to refuse
to boot.

To make it easier to use the Rocky Linux installation medium is added.

8fbfbca3 07/11/2022 07:52 AM Bastian Schmidt

Fixes #34941 - Enable Ubuntu Autoinstall smart proxy deployment

  • Use foreman_request_addr to reference correct Foreman/smart proxy port
  • Use kernel and boot file variables from medium provider instead of static paths

Co-authored-by: Evgeni Golov <>

143054a6 06/23/2022 01:25 PM Pat Riehecky

Fixes #32612 - Add some extra metadata to the default kickstart

fc8b9d39 06/22/2022 01:11 PM Oleh Fedorenko

Fixes #32881 - Expose previous application record revision through safemode (#9258)

713a1878 06/16/2022 06:10 AM Adam Ruzicka

Fixes #34969 - Set up REX pull on client setup (#9235)

- Import katello-pull-transport-migrate
- Setup rex pull on registration
- Setup rex pull during provisioning
- Pass config params to slots/fills in registration form

91e49941 05/30/2022 12:04 PM Bastian Schmidt

Fixes #34700 - autoinstall template enable root user

The `identity` field doesn't allow to add/edit root as a user.
Therefore, the user-data field must be used. Compare the Ubuntu
Autoinstall documentation:
https://ubuntu.com/server/docs/install/autoinstall-reference#identity...

1f145b5f 05/25/2022 09:11 AM Bastian Schmidt

Fixes #34908 - Set hostname for Ubuntu Autoinstall

0462f797 05/18/2022 01:08 PM Lukas Zapletal

Fixes #34702 - use warning instead of halt for SCSI issues

Signed-off-by: Lukas Zapletal <>

5d9d6d9a 03/28/2022 12:48 PM Bernhard Suttner

Fixes #34658 - Harmonize preseed templates

74f6bdb8 03/15/2022 11:14 AM Ondřej Ezr

Refs #34558 - update snapshots

9b83dfe5 03/11/2022 10:58 AM Ondřej Ezr

Fixes #33782 - do not use fixtures for Settings

As we no longer require settings in DB, we may drop the fixtures for settings.

db399691 03/07/2022 09:47 AM Sayan Das

Fixes #34525 - Call insights snippet by honoring host_registration_insights param during system build

0ed80f45 03/04/2022 11:52 AM Ondřej Ezr

Fixes #34339 - sanitize fqdn in tests

Tests were almost not using the fqdn defined in settings.yaml.test
That is quite confusing at first sight and we should not override this value by fixtures, only if overriden in the same test file.

a2adaca0 03/02/2022 04:17 PM Lukas Zapletal

Refs #34489 - update snapshot tests for Yast PXE

dd8ff395 03/02/2022 12:41 PM Lukas Zapletal

Fixes #34532 - disable EFI local chainloading by default

Signed-off-by: Lukas Zapletal <>

749e7f2d 03/01/2022 08:25 PM Lukas Zapletal

Fixes #32632 - initial verison of Ubuntu autoinstall templates

Signed-off-by: Lukas Zapletal <>

c6fc10ea 01/31/2022 02:27 PM Ondřej Ezr

Refs #34323 - sanitize setting fixtures

Setting fixtures should not be used to override defaults for tests unless meant for every test.
If we mean to override the setting value for all tests, we should override value and not the default.

e31dff60 01/18/2022 09:59 AM Lukas Zapletal

Fixes #31027 - transpiler macros for CoreOS family

5352e55d 01/05/2022 12:01 PM Leos Stejskal

Fixes #34213 - truthy? and falsy? template helpers

Template helpers for checking if a value is truthy or falsy

117b53a9 01/05/2022 11:10 AM Adam Cécile

Fixes #34214 - use host_param_true? to detect puppet6-repo

ce219005 12/14/2021 04:47 PM Bastian Schmidt

Fixes #32919 - Add Salt Autosign grain to minion configuration

  • Use host function .derive_salt_grains to get host_params['salt_grains'] and autosign key
  • Makes foreman incompatible with previous foreman_salt versions

Co-authored-by: Evgeni Golov <>

60d53c26 11/24/2021 07:57 PM Dominik Matoulek

Fixes #33811 - Inheritance of root password for Hosts

Hostgroups are used for handle and easily modify passwords for Hosts. But prior this change we stored the password on create time to the Host even if it was inherited from Hostgroup.
When you've changed Hostgroup for Host, the root password was intanct and thus it used password from the old Hostgroup....

8d64e386 11/18/2021 05:14 PM Trent Anderson

Fixes #32602 - enables puppet 7 agent support

Co-authored by @ikonia - Matt Darcy

f94b9c73 11/04/2021 11:26 PM Lukas Zapletal

Fixes #31947 - add grub2/ks validation to jenkins rake task

9f802d90 10/12/2021 08:45 AM Marek Hulán

Fixes #33034 - add a description to all provisioning templates

This PR udpates all the templates metadata to provide at least minimal
description that is then stored in the DB and shown in the edit form.

Co-authored-by: Timo Goebel <>...

4062e17d 10/08/2021 09:41 AM Leos Stejskal

Fixes #32678 - katello_ca_consumer in registration template

Move `rhsm_reconfigure` script from `katello_consumer.rpm` to
`global_registration` template so the `rpm` is not needed anymore

Migrated script is without support of RHEL5 and older
`subscription-manager` versions (0.96 and bellow)

ccb1d609 09/15/2021 08:31 AM Lukas Zapletal

Fixes #33426 - changing virtual in ks fixed

8a46df0d 08/12/2021 10:45 AM Bernhard Suttner

Fixes #33092 - Restart network on EL8

0d08d7a6 08/11/2021 03:22 PM Kamil Szubrycht

Fixes #31049 - Introduce server CA file setting

989e0aad 08/09/2021 03:08 PM Leos Stejskal

Fixes #32822 - Job templates and resource picker

New `resource` user input type for templates with
template macro `input_resource` returning the resource object

9c1b18ff 08/03/2021 09:27 AM Leos Stejskal

Fixes #33033 - shell_escape template macro

New template macro `shell_escape` using
Ruby's `Shellwords.shellescape` for safe shell strings.

Use `shell_escape` for user input variables
in registration templates (`global` & `host_init`)

dffe39af 07/23/2021 12:48 PM Evgeni Golov

Fixes #32540 - host_param_(true|false)? cleanup

let the `default_value` denote what we "read" by default from the host
(in the case the host doesn't have the param) and then compare it with
`true`/`false` (depending on the func) as done with the existing...

bb991bd4 07/19/2021 10:39 AM Ondřej Ezr

Fixes #31059 - regenerate snapshots without environment

92eb6cee 07/19/2021 10:39 AM Ondřej Ezr

Fixes #31235 - drop Puppetclass models

Drops Puppetclass models and their usage.
Extracted in https://github.com/theforeman/foreman_puppet_enc/pull/81
Tests extracted in:
- hostgroup - https://github.com/theforeman/foreman_puppet_enc/pull/85

85df2015 07/19/2021 10:39 AM Ondřej Ezr

Fixes #31056 - drop SmartProxy Puppet feature

Drops testing with puppet feature, Puppet Proxy status.
Puppet proxy multiple update on host.

Extracted in: https://github.com/theforeman/foreman_puppet_enc/pull/70

198040f6 07/16/2021 02:01 PM Leos Stejskal

Fixes #32918 - Host registration - Update packages

New parameter `update_packages` for update of
all packages on the host when registered

82511609 07/14/2021 12:48 PM Lukas Zapletal

Refs #32981 - add snapshot tests for debian and ubuntu

d334af4e 07/04/2021 12:19 PM Ondřej Ezr

Fixes #32490 - proper permission for ansible (#8630)

The file `/root/ansible_provisioning_call.sh` needs to be runnable.

Co-authored-by: Aldrey Galindo <>

5051e374 06/16/2021 08:33 AM Dominik Matoulek

Fixes #28221 - Adding passing of template scope for snippet rendering

In current implementation templates can be much complex by snippet.
Reusable pieces of template code that should be in the same scope like
their templates but they are not. This PR tries to solve that.

68ca9ee3 06/15/2021 04:27 PM Garret Rumohr

Fixes #32486 - Fedora34/RHEL9 deprecated kernel boot parameters

5d04823a 06/02/2021 11:38 AM Marek Hulán

Fixes #31978 - fix the automated provisioning of Fedora

Fedora does not have redhat-lsb-core package available and the installer
fails, interactively asking the user if the package should be ignored.
We should skip this package for Fedora in the default template....

7d603148 06/01/2021 11:06 AM Lukáš Zapletal

Fixes #32681 - avoid naked echo statements in grub (#8564)

b5935f9e 05/12/2021 10:29 PM Lukas Zapletal

Fixes #31407 - prevent spaces for snapshot test files

641c3f4a 05/07/2021 10:34 AM Lukáš Zapletal

Fixes #31370 - multi-host stub template snapshots (#8149)

Our snapshot template render test and generator only supports one host stub (ipv4 single NIC redhat OS). In order to test more ERB codepaths, we need a way to create snapshots against multiple host stubs (e.g. IPv6, dualstack, static IPv4 or IPv6, debian family). In order to do that, template metadata can be extended to define list of host stubs to create and test snapshots against....

e9a52589 04/27/2021 01:50 PM Oleh Fedorenko

Fixes #32394 - Use grub_pass macro instead of variable

The default Kickstart template uses obsolete @grub_pass variable
which are not being set anywhere. Maybe it's due to typo or else.
I suggest to use macro instead so it's possible to set the password
via host params and do not clone the template for this purpose only.

827b7d87 04/27/2021 01:07 AM Lukas Zapletal

Fixes #31399 - snapshot tests exclude plugins

3a75046e 04/22/2021 08:38 PM Lukas Zapletal

Fixes #31946 - support for S390x

On S390 kernel and initramdisk are at a different path and with different names: images/kernel.img and images/initrd.img. Foreman operating system model must reflect that in order to download Anaconda installer to TFTP.

Co-authored-by: Ewoud Kohl van Wijngaarden <>

4a720456 04/22/2021 06:15 PM Martin Schlossarek

Refs #32372 - correct remaining paths

bb4633bcd4facc339a8099f4a8e89312323d8b61 refactored the atomic kickstart but
used an incorrect path for logs in the %pre section. This corrects it.

ceb276fb 04/22/2021 08:34 AM Martin Schlossarek

Fixes #32372 - Correct path for logs in kickstart

bb4633bcd4facc339a8099f4a8e89312323d8b61 refactored the kickstart but
used an incorrect path for logs in the %pre section. This corrects it.

bf56104d 04/19/2021 02:18 PM Leos Stejskal

Fixes #31743 - Template macro install_packages (#8298)

For package installation on supported OS families: Red Hat, Debian & Suse.
In host registration users can now install packages
by setting the `host_packages` parameter.

Also if a snippet `host_init_config_post` is defined, it gets added to the registration script.

c1104d00 04/14/2021 08:20 AM Ondřej Ezr

Fixes #32092 - add puppet safe guard

Hides puppetserver and puppet environment behind macros, that can alter
implementation much more easily and even be patched from plugin.

3e756bcc 03/24/2021 09:57 AM Leos Stejskal

Fixes #31750 - :foreman_server_ca_cert macro & not existing file (#8294)

bb1a931b 02/19/2021 09:25 AM Lukáš Zapletal

Fixes #31064 - sequence helper macro (#8072)

f36cf952 02/06/2021 01:11 PM Scott Lindeneau

Fixes #31758 - Unterminated single quote in chainloader pxeboot template breaks grub2 parser

Changes wording from can't to cannot to remove unterminated single quote.

45ed4a79 02/02/2021 12:48 PM Dominik Matoulek

fixes #31633 - Introducing format_time macro

There is no way how to show Unix timestamp in pretty way in reports. This macro solves the problem.

789225c2 01/20/2021 11:09 AM Lukas Zapletal

Fixes #31573 - drop IPAPPEND2 and use BOOTIF with 01 prefix

58f77d91 01/03/2021 04:39 PM Lukas Zapletal

Fixes #31454 - extract eject cdrom into snippet

bb4633bc 11/27/2020 02:16 PM Lukas Zapletal

Fixes #28521 - log location, pre/post, dynamic layout

Co-authored-by: Ewoud Kohl van Wijngaarden <>

174c7354 11/26/2020 12:41 PM Lukas Zapletal

Fixes #31348 - raw params in foreman_url support

3cc32c9e 11/05/2020 01:53 PM Leos Stejskal

Fixes #31082 - Add Insights snippet to the Kickstart templates (#8092)

146c1a76 11/01/2020 12:32 PM Leos Stejskal

Fixes #31020 - Global Registration & REX setup parameter (#8104)

New Host parameter 'host_registration_remote_execution',
seeded with default value set to 'true'.
New parameter :setup_remote_execution for Global registration endpoint,
allowing users to enable/disable REX setup when registering host.

694b95f2 10/26/2020 08:54 AM Lukas Zapletal

Fixes #31067 - improve error message for ESP chainload

d2977968 10/13/2020 03:46 PM Leos Stejskal

Fixes #30998 - Global Registration - Secure connection (#8047)

The global registration endpoint template now deployes the CA
certificate of the Foreman to a temp file. This certificate is then used
by subsequent curl calls to ensure the Foreman server authenticity. The...

a9ed12bb 10/12/2020 12:05 PM Kamil Szubrycht

Fixes #31015 - Add macros to deal with json and yaml in safemode