Class: Caco::Repmgr::Cell::Conf

Inherits:
Trailblazer::Cell
  • Object
show all
Defined in:
lib/caco/repmgr/cell/conf.rb

Instance Method Summary collapse

Instance Method Details

#barman_hostObject



35
36
37
# File 'lib/caco/repmgr/cell/conf.rb', line 35

def barman_host
  property(:barman_host) || "barman"
end

#barman_serverObject



39
40
41
# File 'lib/caco/repmgr/cell/conf.rb', line 39

def barman_server
  property(:barman_server) || "pg"
end

#node_idObject



3
4
5
# File 'lib/caco/repmgr/cell/conf.rb', line 3

def node_id
  property(:node_id)
end

#node_initial_roleObject



23
24
25
# File 'lib/caco/repmgr/cell/conf.rb', line 23

def node_initial_role
  property(:node_initial_role)
end

#node_nameObject



7
8
9
# File 'lib/caco/repmgr/cell/conf.rb', line 7

def node_name
  property(:node_name)
end

#postgres_versionObject



27
28
29
# File 'lib/caco/repmgr/cell/conf.rb', line 27

def postgres_version
  property(:postgres_version)
end

#primary_databaseObject



19
20
21
# File 'lib/caco/repmgr/cell/conf.rb', line 19

def primary_database
  property(:primary_database)
end

#primary_hostObject



11
12
13
# File 'lib/caco/repmgr/cell/conf.rb', line 11

def primary_host
  property(:primary_host)
end

#primary_userObject



15
16
17
# File 'lib/caco/repmgr/cell/conf.rb', line 15

def primary_user
  property(:primary_user)
end

#use_barman?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/caco/repmgr/cell/conf.rb', line 31

def use_barman?
  property(:use_barman) || false
end