You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're quoting it in hiera, then it's a string. I think the problem is the ERB template, the decorate method in particular. #146 appears to be a report about this same problem. I bet if the template were converted to EPP, the problem would go away.
I have tried both quoted and not quoted, it's the same result either way.
Funnily enough though, we have since figured out that 416 actually works. From what we have been able to find out, the preceding 0 is interpreted by GitLab not as part of the permissions, but as an indicator that the following number is octal. So if a decimal number is entered, GitLab will first convert it to octal.
So what happens is, I enter 0640, which is then converted from octal to binary by Puppet and written into the configuration as 416. GitLab then sees that and converts it back to octal.
Yeah, the numerical value is the same regardless of the radix. So I guess this is more of a cosmetic problem. Still would be good to convert the template to EPP.
I am trying to set the configuration
backup_archive_permissions
option.Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce
Hiera code:
What are you seeing
Because of how Puppet handles numbers prefixed with a 0, this gets converted to
416
when writing thegitlab.rb
configuration file, like so:What behaviour did you expect instead
Output log
The text was updated successfully, but these errors were encountered: