Puppet 4 and newer treats integers with a leading ...
# puppet
c
Puppet 4 and newer treats integers with a leading
0
as Octal: https://help.puppet.com/core/current/Content/PuppetCore/lang_data_number_octal_hex_integers.htm So, if you want to pass
0755
through to something like
chmod
without having the octal evaluated in Puppet, then it needs to exist as a String in Puppet and not a Number.