Hi Pink, CouchDB's native configuration interface is the HTTP API. You'll have to read through the documentation for e.g. Ansible, Chef, Puppet, etc. to understand how it can be made to make HTTP requests.
All three of the operations below can be done with HTTP requests, with the first two being single requests to the /_users database. However, in a cluster, changing config values must be done *per machine*, so it's better to make this change in the local.ini file on each machine. All config management tools have easy ways to template/deploy a file to the file system, so you'll want to use this approach instead. I'm sorry that I don't have the time to share an explicit implementation for these 3 specific requests, but I hope the above points you in the right direction. I do maintain the Chef cookbook for CouchDB at https://github.com/wohali/couchdb-cookbook but it doesn't provide native facilities to do any of the things mentioned above, sorry. You'll have to use basic Chef functionality to achieve what you're looking for in that tool. Creating users with roles are just documents in the /_users db; docs on that document format are here: http://docs.couchdb.org/en/stable/intro/security.html#authentication-database -Joan ----- Original Message ----- > From: "Pink and Dangerous to Know Mad" <[email protected]> > To: [email protected] > Sent: Thursday, September 27, 2018 3:01:00 PM > Subject: Configuration manager help for clusters > > I have a small cluster setup. I need a for dummies guide to using a > configuration manager to change configurations. Don't care which one. > Can anyone give an example of how to: > > 1. create a user "raspberry" > > 2. create a role "friend" to user "raspberry" > > 3. change the config for UUID's algorithm to "utc_random" > > Thanks in advance!
