[uyuni-users] Trouble making macros in configuration files work
Version of Uyuni: 2020.01 In short, macros in configuration files get deployed literally instead of being replaced with custom system information. Longer explanation: The configuration file is as follows: /root/.bashrc <snip> export PS1="({| rhn.system.custom_info(contract_number) |} {| rhn.system.custom_info(bash_name) |}) $PS1" </snip> The delimiters are set to {| and |} for beginning and end. Accordingly I have also configured two custom system information key named "contract_number" and "bash_name" After a system gets bootstraped the two keys are filled with values unter "Custom info". For example "12345" and "backup server". Afterwards the configuration files are deployed, but the macros are taken literally e.g. {| rhn.system.custom_info(contract_number) |} instead of being replaced with 12345. I am not sure if I am doing something wrong or may this be a bug? -------------------------------------------------------- ratiokontakt GmbH Biegenhofstr. 13 96103 Hallstadt Telefon: +49 (0) 951 9 35 35 - 0 Telefax: +49 (0) 951 9 35 35 - 902 Internet: www.ratiokontakt.de Geschäftsführer: Stefan Kraft Amtsgericht Bamberg - HRB 3757 -------------------------------------------------------- ratiokontakt ist zertifiziert nach DIN ISO/IEC 27001 -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
participants (1)
-
Kristijan Savic - ratiokontakt GmbH