diff --git a/manifests/config.pp b/manifests/config.pp index 100eacbe..f33c0d2d 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -60,6 +60,7 @@ $service_user = $::gitlab::service_user $shell = $::gitlab::shell $sidekiq = $::gitlab::sidekiq + $sidekiq_cluster = $::gitlab::sidekiq_cluster $skip_auto_migrations = $::gitlab::skip_auto_migrations $source_config_file = $::gitlab::source_config_file $unicorn = $::gitlab::unicorn diff --git a/manifests/init.pp b/manifests/init.pp index 6ab1913c..8beaa1e9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -247,6 +247,10 @@ # Default: undef # Hash of 'sidekiq' config parameters. # +# [*sidekiq_cluster*] +# Default: undef +# Hash of 'sidekiq_cluster' config parameters. +# # [*skip_auto_migrations*] # Default: undef # Enable or disable auto migrations. undef keeps the current state on the system. @@ -356,6 +360,7 @@ $sentinel = undef, $shell = undef, $sidekiq = undef, + $sidekiq_cluster = undef, $skip_auto_migrations = undef, $source_config_file = undef, $unicorn = undef, @@ -415,6 +420,7 @@ if $sentinel { validate_hash($sentinel) } if $shell { validate_hash($shell) } if $sidekiq { validate_hash($sidekiq) } + if $sidekiq_cluster { validate_hash($sidekiq_cluster) } if $skip_auto_migrations != undef { validate_bool($skip_auto_migrations) } if $unicorn { validate_hash($unicorn) } if $user { validate_hash($user) } diff --git a/templates/gitlab.rb.erb b/templates/gitlab.rb.erb index 4c6d589d..96c0dad0 100644 --- a/templates/gitlab.rb.erb +++ b/templates/gitlab.rb.erb @@ -96,6 +96,15 @@ unicorn['<%= k -%>'] = <%= decorate(@unicorn[k]) %> <%- @sidekiq.keys.sort.each do |k| -%> sidekiq['<%= k -%>'] = <%= decorate(@sidekiq[k]) %> <%- end end -%> +<%- if @sidekiq_cluster -%> + +########################## +# GitLab Sidekiq Cluster # +########################## + +<%- @sidekiq_cluster.keys.sort.each do |k| -%> +sidekiq_cluster['<%= k -%>'] = <%= decorate(@sidekiq_cluster[k]) %> +<%- end end -%> <%- if @shell -%> ################