summaryrefslogtreecommitdiff
path: root/provider_base/services/couchdb.rb
blob: dcf7df592786c724f74a7312c005e95a5119e6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# custom logic for couchdb json resolution
# ============================================
#
# bigcouch is no longer maintained, so now couchdb is required...
# no matter what!
#

if self.couch['master']
  LeapCli::log :warning, %("The node property {couch.master:true} is deprecated.\n) +
    %(   Only {couch.mode:plain} is supported. (node #{self.name}))
end

couchdb_nodes = nodes_like_me['services' => 'couchdb']

if couchdb_nodes.size > 1
  LeapCli::log :error, "Having multiple nodes with {services:couchdb} is no longer supported (nodes #{couchdb_nodes.keys.join(', ')})."
elsif self.couch.mode == "multimaster"
  LeapCli::log :error, "Nodes with {couch.mode:multimaster} are no longer supported (node #{self.name})."
end