From 23e65fd524674f65f75651147c5c787382f20909 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 10 Feb 2016 14:20:58 -0800 Subject: resolves #7646: leap_cli should fail when soledad and couchdb service are seperated --- provider_base/services/soledad.json | 1 - provider_base/services/soledad.rb | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 provider_base/services/soledad.rb (limited to 'provider_base') diff --git a/provider_base/services/soledad.json b/provider_base/services/soledad.json index 99390d17..169588c8 100644 --- a/provider_base/services/soledad.json +++ b/provider_base/services/soledad.json @@ -1,7 +1,6 @@ { "soledad": { "port": 2323, - "require_couchdb": "=> assert %(services.include? 'couchdb')", "couchdb_soledad_user": { "username": "= global.services[:couchdb].couch.users[:soledad].username", "password": "= secret :couch_soledad_password", diff --git a/provider_base/services/soledad.rb b/provider_base/services/soledad.rb new file mode 100644 index 00000000..b55e90b6 --- /dev/null +++ b/provider_base/services/soledad.rb @@ -0,0 +1,3 @@ +unless self.services.include? "couchdb" + LeapCli.log :error, "service `soledad` requires service `couchdb` on the same node (node #{self.name})." +end \ No newline at end of file -- cgit v1.2.3