GithubHelp home page GithubHelp logo

chialab / ansible-couchdb Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 2.0 4 KB

[READ ONLY] Ansible role to install, configure and initialize CouchDB on Ubuntu.

Home Page: https://github.com/Chialab/ansible-roles

couchdb ansible ansible-role

ansible-couchdb's Introduction

CouchDB

This role's duty is to set up a CouchDB Server, configure it at wish, and add a basic initialization (create users, create and secure databases).

Variables

couchdb_settings

CouchDB configuration settings, to be written in an .ini file within the /etc/couchdb/local.d/ directory. This is a two-dimensional dict of settings, where the first level keys represent the section.

Note: boolean values should be written as strings (e.g.: "true") to prevent unwanted capitalization.

couchdb_admins

Dictionary of CouchDB server admins and their passwords. Passwords MUST be written in plain text (please, consider using Ansible Vault). By default, no admin user is created.

couchdb_users

Dictionary of CouchDB users to be created. Each dictionary item is itself a dictionary, where the password key is required, and the roles key (list) is optional. Please note that existing users are NOT updated. By default, no user is created.

couchdb_databases

Dictionary of CouchDB databases to be created, and their security settings. Each dictionary item is itself a dictionary, where the admins and members keys are both optional (see CouchDB docs for reference). By default, no database is created.

couchdb_replication

List of replication settings to be written to _replicator database to set up replication. By default, no replication happens.

couchdb_url

Endpoint for HTTP API requests. You should change this only if CouchDB is listening on a non-standard port or on other particular conditions. If you aren't initializing your database with regular users and/or databases, this setting is completely ignored.

Example

---
couchdb_settings:
  httpd:
    port: "5984"
    bind_address: "0.0.0.0"

couchdb_admins:
  admin: P4s$w0rd

couchdb_users:
  user_with_roles:
    password: password123
    roles:
      - developer
      - manager
  user_without_roles:
    password: password456

couchdb_databases:
  database_without_security: {}
  database_with_admins:
    admins:
      names:
        - user_without_roles
      roles:
        - manager
  database_with_members:
    members:
      roles:
        - developer

couchdb_replication:
  - source: my_database
    target: http://backup.example.com:5984/my_database
    continuous: yes

couchdb_url: "http://localhost:5984"

Contributing

Issues and pull requests are more than welcome!

This repo is a split of the main code that can be found here. Please, open pull requests against that repository instead.

ansible-couchdb's People

Contributors

fauria avatar fquffio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fauria suprdewd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.