https://github.com/mrlesmithjr/ansible-couchbase
https://github.com/mrlesmithjr/ansible-couchbase
ansible ansible-role couchbase debian ubuntu
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrlesmithjr/ansible-couchbase
- Owner: mrlesmithjr
- Created: 2016-02-10T18:47:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T14:22:51.000Z (over 9 years ago)
- Last Synced: 2025-01-21T17:48:15.454Z (over 1 year ago)
- Topics: ansible, ansible-role, couchbase, debian, ubuntu
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> [!CAUTION]
> **This project is archived and no longer maintained.**
> Archived: 2026-03-26
> Reason: Low community usage; no longer maintained
Role Name
=========
An [Ansible] role to install [Couchbase] DB
Requirements
------------
Define Ansible host inventory as example below in order to configure cluster.
```
[couchbase-master]
couchbase01 ansible_ssh_host=192.168.202.201
[couchbase-servers]
couchbase02 ansible_ssh_host=192.168.202.202
couchbase03 ansible_ssh_host=192.168.202.203
```
Vagrant
-------
Spin up Environment under Vagrant to test. This environment has 3 nodes (1-master and 2-members)
```
vagrant up
```
Usage
-----
###### Non-Vagrant
Login to WebUI using defined owncloud_admin_user and owncloud_admin_pass vars (http://iporhostname:{{ couchbase_rest_http_port }})
###### Vagrant
Login to WebUI using defined owncloud_admin_user and owncloud_admin_pass vars (http://127.0.0.1:{{ couchbase_rest_http_port }})
Role Variables
--------------
```
---
# defaults file for ansible-couchbase
couchbase_admin_pass: 'P@55w0rd'
couchbase_admin_user: 'admin'
couchbase_buckets:
- name: 'test01'
ram_size: '256'
state: 'absent'
- name: 'test-01'
ram_size: '256'
state: 'present'
- name: 'test-02'
ram_size: '256'
state: 'present'
couchbase_cli: '/opt/couchbase/bin/couchbase-cli'
couchbase_cluster_ram_multiplier: 0.5
couchbase_cluster_ram_quota: '{{ (ansible_memtotal_mb | int * couchbase_cluster_ram_multiplier) | round | int }}'
couchbase_config_cluster: false #defines if couchbase cluster should be initialized
couchbase_debian_package: 'couchbase-server-community_{{ couchbase_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}_amd64.deb'
couchbase_debian_package_dl: 'http://packages.couchbase.com/releases/{{ couchbase_version }}'
couchbase_manage_buckets: false #defines if buckets should be managed
couchbase_rest_http_port: '8091'
couchbase_version: '4.5.0'
```
Dependencies
------------
None
Example Playbook
----------------
#### GitHub
````
---
- name: provisions Couchbase
hosts: all
become: true
vars:
- couchbase_config_cluster: true
roles:
- role: ansible-couchbase
tasks:
````
#### Galaxy
````
---
- name: provisions Couchbase
hosts: all
become: true
vars:
- couchbase_config_cluster: true
roles:
- role: mrlesmithjr.couchbase
tasks:
````
License
-------
BSD
Author Information
------------------
Larry Smith Jr.
- @mrlesmithjr
- http://everythingshouldbevirtual.com
- mrlesmithjr [at] gmail.com
[Ansible]:
[Couchbase]: