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
I did try multiple different ways but I think the .inspect-method prevents my success.
What are you seeing
My generated config.rb contains /mnt/gitlab/\#{node['fqdn']}/artifacts. Note the backslash \#.
What behaviour did you expect instead
I do expect this to happen using the inspect-method. I am wondering how I may prevent this behaviour as gitlab needs the # unescaped.
Output log
Any additional information you'd like to impart
I should note that I am not using the whole repository as of now, as I am working on an already existing self-made puppet environment. I would like to use the template though and I could not find any information on how this repository deals with this issue.
The text was updated successfully, but these errors were encountered:
Looks like you can't prevent this, that's just how the Ruby inspect method works on strings. Seems like this is not a very good way to do it if this template is supposed to be producing valid Ruby itself. Since you're not using the module, you can just edit the template however you want. For this Puppet module though, I think converting it to EPP would be a good first step.
Also, I don't even see artifacts_path in this module at all. If you're using this template outside of this module, I think this usage is invalid as it's not being used as intended, and therefore this bug report is also invalid. So, closing issue.
It is in fact a key of the gitlab_rails hash. I accept that it is closed, in fact I think you are right. But out of curiousity, because I don't understand how this repo deals with it: How is the data produced by the template postprocessed such that this behaviour as I describe cannot happen?
Affected Puppet, Ruby, OS and module versions/distributions
Debian 10, Puppet 6, Ruby 2.3.3p222,
How to reproduce (e.g Puppet code you use)
In hiera I set (among others) the key artifacts_path like
I did try multiple different ways but I think the .inspect-method prevents my success.
What are you seeing
My generated config.rb contains
/mnt/gitlab/\#{node['fqdn']}/artifacts
. Note the backslash\#
.What behaviour did you expect instead
I do expect this to happen using the inspect-method. I am wondering how I may prevent this behaviour as gitlab needs the
#
unescaped.Output log
Any additional information you'd like to impart
I should note that I am not using the whole repository as of now, as I am working on an already existing self-made puppet environment. I would like to use the template though and I could not find any information on how this repository deals with this issue.
The text was updated successfully, but these errors were encountered: