-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implicit cast '1' to integer 1 in ruby template #258
Comments
|
Ouch. This one might wind up on the "will not fix" category. This isn't a recommended/officially supported setting for the omnibus template, and is a development setting only. What you can do though, is add a Make sure that resource notifies the The next release actually will have a built-in way to order this stuff correctly so you don't even need to issue a restart manually. We might actually pivot this into a feature request for "development mode settings" that you can inject in-between the config and service phases of the module so it will handle restart properly. For the moment though, you'll have to do it like this: class {'gitlab':
...
}
file {'/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_LOG_ARGUMENTS:
ensure => 'present',
mode => '0644',
owner => 'root',
group => 'root',
content => "1",
require => Class['sfgitlab'],
notify => Service['gitlab-runsvdir']
} |
|
@voxpupuli/collaborators I haven't labeled this yet, because I haven't decided if it's Technically the v3 release already has support for ordering these types of things, in conjunction with the new |
|
Thanks a million |
|
@shcherbak if you just now looked at this, i edited the comment I made to indicate the |
|
and I messed up the file path, which i also just fixed. 🤦 . It's a monday. |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
hiera.yaml:
gitlab::gitlab_rails:
env:
BUNDLE_GEMFILE: '/opt/gitlab/embedded/service/gitlab-rails/Gemfile'
PATH: '/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin'
SIDEKIQ_LOG_ARGUMENTS: '1'
What are you seeing
value must be nill or string, you passed 1
What behaviour did you expect instead
gitlab_rails['env'] = {
"BUNDLE_GEMFILE" => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
"PATH" => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
"SIDEKIQ_LOG_ARGUMENTS" =>1
}
but shuold be ("SIDEKIQ_LOG_ARGUMENTS" =>'1' ) :
gitlab_rails['env'] = {
"BUNDLE_GEMFILE" => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
"PATH" => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
"SIDEKIQ_LOG_ARGUMENTS" =>'1'
}
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: