From 380a0b8ca25c57b58daf657055865e025b863a1c Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 16 Jun 2026 16:44:10 +1000 Subject: [PATCH] Update the puppet reserved names --- enroll/puppet.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/enroll/puppet.py b/enroll/puppet.py index a051a75..e62cb6e 100644 --- a/enroll/puppet.py +++ b/enroll/puppet.py @@ -13,15 +13,35 @@ def _load_state(bundle_dir: str) -> Dict[str, Any]: return json.load(f) +# https://help.puppet.com/core/current/Content/PuppetCore/lang_reserved_words.htm _RESERVED_PUPPET_NAMES = { + "and", "application", - "class", + "attr", + "case", + "component", + "consumes", "default", "define", + "elsif", + "environment", + "false", + "function", + "if", "import", + "in", "inherits", "node", + "or", + "private", + "produces", + "regexp", "site", + "true", + "type", + "undef", + "unit", + "unless", }