Skip to content

pag-r/cluster_vagrant_vbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Couchbase cluster cookbook using VirtualBox, Chef and Vagrant

Cookbook is builded by default on Centos6.6

Cookbook is created to add cluster nodes very easily using json-like file. VirtualBox was used to build VMs as VBox allows usage of concurrent builds in Vagrantfile

Config

schema.json

All parts of cookbook uses single one config file: schema.json format

{
  "master"    : "192.168.33.10",
  "user"      : "root",
  "password"  : "secretpass",
  "nodes": [
    {
      "hostname"    : "clstr20node",
      "ip_address"  : "192.168.33.22",
      "cookbook"    : "couchbase_cluster"
    },
    {
      "hostname"    : "clstr00serv",
      "ip_address"  : "192.168.33.10",
      "cookbook"    : "couchbase_cluster"
    }
  ]
}

master node uses IP notation instead of hostname

Usage

using vagrant:

vagrant up

using Rakefile

$ rake couchbase:reload            # delete vboxes and run vagrant up again

Couchbase Rest API

Using rakefile GET commands for RESTAPI can be made. No further configuration is needed. Rakefile uses schema.json configuration.

rake couchbase:restapi[command]  # run command using API like /pools/default/buckets/test_bucket/stats

If no command is set GET /pools/nodes is used.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Couchbase cluster chef cookbook using virtualbox provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages