Skip to content
Snippets Groups Projects
Commit 33757bf8 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Set primary / secondary node name explicitly

parent 42bca3c0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,7 +13,7 @@ module Gitlab
# rubocop:disable Style/Semicolon
 
attr_reader :release, :docker
attr_accessor :volumes, :network, :environment
attr_accessor :volumes, :network, :environment, :name
 
def_delegators :release, :tag, :image, :edition
 
Loading
Loading
Loading
Loading
@@ -17,6 +17,7 @@ module Gitlab
 
Component::Gitlab.perform do |primary|
primary.release = release
primary.name = 'gitlab-primary'
primary.network = 'geo'
primary.omnibus_config = <<~OMNIBUS
geo_primary_role['enable'] = true;
Loading
Loading
@@ -30,6 +31,7 @@ module Gitlab
primary.instance do
Component::Gitlab.perform do |secondary|
secondary.release = release
secondary.name = 'gitlab-secondary'
secondary.network = 'geo'
secondary.omnibus_config = <<~OMNIBUS
geo_secondary_role['enable'] = true;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment