You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2018/03/20 03:22:00 UTC

[incubator-openwhisk] branch master updated: Create '_users' database for singleton ephemeral couchdb v 2+ (#3402)

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 <jo...@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.