Custom fact to get current system locale on Windows

22 views
Skip to first unread message

Dirk Heinrichs

unread,
Sep 24, 2020, 8:38:38 AM9/24/20
to puppet...@googlegroups.com
Hi,

I'm currently facing a problem where a package on Windows is installed with a translated displayname ("AdoptOpenJDK JRE mit Hotspot 11.0.7.10 (x64)"). Of course this is different from the expected (english) displayname ("AdoptOpenJDK JRE with Hotspot 11.0.7.10 (x64)") which breaks idempotency. However, the particular systems I need to install this package on need to run with the German locale, so I need a way to get the current locale at runtime.

So before I start writing my own: Does anybody have a custom fact at hand for Windows which does this?

Thanks...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
signature.asc
Reply all
Reply to author
Forward
0 new messages