openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rab...@apache.org
Subject [incubator-openwhisk] branch master updated: Create '_users' database for singleton ephemeral couchdb v 2+ (#3402)
Date Tue, 20 Mar 2018 03:22:00 GMT
This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fb3a6f  Create '_users' database for singleton ephemeral couchdb v 2+ (#3402)
8fb3a6f is described below

commit 8fb3a6fda1700b8cde1de300492b1461a176df15
Author: Jonathan Springer <jonpspri@gmail.com>
AuthorDate: Mon Mar 19 23:21:57 2018 -0400

    Create '_users' database for singleton ephemeral couchdb v 2+ (#3402)
---
 ansible/roles/couchdb/tasks/deploy.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ansible/roles/couchdb/tasks/deploy.yml b/ansible/roles/couchdb/tasks/deploy.yml
index 1add443..0dedb7c 100644
--- a/ansible/roles/couchdb/tasks/deploy.yml
+++ b/ansible/roles/couchdb/tasks/deploy.yml
@@ -51,6 +51,16 @@
   retries: 12
   delay: 5
 
+- name: create '_users' database for singleton mode
+  uri:
+    url: "{{ db_protocol }}://{{ ansible_host }}:{{ db_port }}/_users"
+    method: PUT
+    status_code: 201
+    user: "{{ db_username }}"
+    password: "{{ db_password }}"
+    force_basic_auth: yes
+  when: (couchdb.version|version_compare('2.0','>=')) and (db.instances|int == 1)
+
 - name: enable the cluster setup mode
   uri:
     url: "{{ db_protocol }}://{{ ansible_host }}:{{ db_port }}/_cluster_setup"

-- 
To stop receiving notification emails like this one, please contact
rabbah@apache.org.

Mime
View raw message