{"action":"created","comment":{"url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/comments/48055682","id":48055682,"diff_hunk":"@@ -53,147 +51,276 @@ moxi\n RECIPES\n =======\n \n-client\n+client_clibrary\n ------\n \n-Installs the libcouchbase2 and devel packages.\n+Installs the libcouchbase2 and devel packages for the clibrary.\n \n server\n ------\n \n-Installs the couchbase-server package and starts the couchbase-server service.\n+Installs the couchbase-server package and starts the couchbase-server service. If run_cluster_init is true (default) will initialize the server.\n \n moxi\n ----\n \n Installs the moxi-server package and starts the moxi-server service.\n \n+test_join_cluster\n+-----------------\n+\n+Example recipe to join nodes into a cluster.\n+\n+test_leave_cluster\n+------------------\n+\n+Example recipe to remove a node from a cluster.\n+\n+test_bucket_create\n+------------------\n+\n+Example recipe to add a bucket to the cluster.\n+\n+test_xdcr_create\n+----------------\n+\n+Example recipe to establish xdcr between two cluster and replicate a bucket.\n+\n+test_xdcr_delete\n+----------------\n+\n+Example recipe to delete bucket replication and xdcr between two clusters.\n+\n RESOURCES/PROVIDERS\n ===================\n \n-couchbase_node\n---------------\n+couchbase_install_server\n+------------------------\n \n ### Actions\n \n-* `:modify` - **Default** Modify the configuration of the node\n+* `:install` - **Default** Installs couchbase-server from couchbase package repository.\n \n ### Attribute Parameters\n \n-* `id` - The id of the Couchbase node, typically \"self\", defaults to the resource name\n-* `database_path` - The directory the Couchbase node should persist data to\n-* `username` - The username to use to authenticate with Couchbase\n-* `password` - The password to use to authenticate with Couchbase\n+* `version` - Version of couchbase to install (i.e.: 4.0.0).\n+* `edition` - Either community (default) or enterprise.\n \n ### Examples\n \n ```ruby\n-couchbase_node \"self\" do\n-  database_path \"/mnt/couchbase-server/data\"\n-\n-  username \"Administrator\"\n-  password \"password\"\n+couchbase_install_server \"self\" do\n+  version '4.0.0'\n+  edition 'community'\n end\n ```\n \n-couchbase_cluster\n------------------\n+couchbase_node_diretories\n+-------------------------\n \n ### Actions\n \n-* `:create_if_missing` - **Default** Create a cluster/pool only if it doesn't exist yet\n+* `:add` - **Default** Sets the data and index directories on the node\n \n ### Attribute Parameters\n \n-* `cluster` - The id of the Couchbase cluster, typically \"default\", defaults to the resource name\n-* `memory_quota_mb` - The per server RAM quota for the entire cluster in megabytes\n+* `database_path` - The path to where database should persist\n+* `index_path` - The path to where the index should persist. If not set will default to database_path.\n * `username` - The username to use to authenticate with Couchbase\n * `password` - The password to use to authenticate with Couchbase\n+* `install_path` - Path to where couchbase is installed - /opt/couchbase.\n \n ### Examples\n \n ```ruby\n-couchbase_cluster \"default\" do\n-  memory_quota_mb 256\n-\n-  username \"Administrator\"\n-  password \"password\"\n+couchbase_node_directories \"self\" do\n+  database_path '/opt/couchbase/var/lib/couchbase/data'\n+  index_path '/opt/couchbase/var/lib/couchbase/index'\n+  username 'Administrator'\n+  password 'password'\n+  install_path '/opt/couchbase'\n end\n ```\n \n-couchbase_settings\n-------------------\n+couchbase_manage_cluster\n+------------------------\n \n ### Actions\n \n-* `:modify` - **Default** Modify the collection of settings\n+* `:init` - **Default** Initialize node setting username and password for web ui.\n+* `:join` - Join a node to a cluster.\n+* `:leave` - Remove a node from a cluster.\n \n ### Attribute Parameters\n \n-* `group` - Which group of settings to modify, defaults to the resource name\n-* `settings` - The hash of settings to modify\n+* `services` - Version 4 and above. Defines the services the node will perform. One of data, index, query. For community edition every node must have data. This is primarily used when joining a node to a cluster but is required when running init.\n+* `ramsize` - Amount of RAM in MB to allocate to data\n+* `index_ramsize` - Amount of RAM in MB to allocate to index. If not set index is lumped in with data. \n+* `version` - Version of couchbase. Needed to determine required attributes for 4 and above not supported on 3. Default is 4.0.0.\n * `username` - The username to use to authenticate with Couchbase\n * `password` - The password to use to authenticate with Couchbase\n+* `install_path` - Path to where couchbase is installed - /opt/couchbase.\n+\n+* `master_ip` - Required and used only for :join and :leave. The ip address of the master node in the cluster.\n+\n \n ### Examples\n \n ```ruby\n-couchbase_settings \"autoFailover\" do\n-  settings({\n-    \"enabled\" => true,\n-    \"timeout\" => 30,\n-  })\n-\n-  username \"Administrator\"\n-  password \"password\"\n+couchbase_manager_cluster \"default\" do\n+  services 'data,index,query'\n+  version '4.0.0'\n+  ramesize '2048'","path":"README.md","position":205,"original_position":205,"commit_id":"6070cb34c55c6d20faa64dfb830b0d5053ef6a3d","original_commit_id":"6070cb34c55c6d20faa64dfb830b0d5053ef6a3d","user":{"login":"fracmak","id":378178,"avatar_url":"https://avatars.githubusercontent.com/u/378178?v=3","gravatar_id":"","url":"https://api.github.com/users/fracmak","html_url":"https://github.com/fracmak","followers_url":"https://api.github.com/users/fracmak/followers","following_url":"https://api.github.com/users/fracmak/following{/other_user}","gists_url":"https://api.github.com/users/fracmak/gists{/gist_id}","starred_url":"https://api.github.com/users/fracmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracmak/subscriptions","organizations_url":"https://api.github.com/users/fracmak/orgs","repos_url":"https://api.github.com/users/fracmak/repos","events_url":"https://api.github.com/users/fracmak/events{/privacy}","received_events_url":"https://api.github.com/users/fracmak/received_events","type":"User","site_admin":false},"body":"ramesize vs ramsize?","created_at":"2015-12-18T18:45:32Z","updated_at":"2015-12-18T18:45:32Z","html_url":"https://github.com/GannettDigital/chef-couchbase/pull/12#discussion_r48055682","pull_request_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/comments/48055682"},"html":{"href":"https://github.com/GannettDigital/chef-couchbase/pull/12#discussion_r48055682"},"pull_request":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12","id":53879737,"html_url":"https://github.com/GannettDigital/chef-couchbase/pull/12","diff_url":"https://github.com/GannettDigital/chef-couchbase/pull/12.diff","patch_url":"https://github.com/GannettDigital/chef-couchbase/pull/12.patch","issue_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/12","number":12,"state":"open","locked":false,"title":"GDPHAR-1872","user":{"login":"dwashko","id":3543470,"avatar_url":"https://avatars.githubusercontent.com/u/3543470?v=3","gravatar_id":"","url":"https://api.github.com/users/dwashko","html_url":"https://github.com/dwashko","followers_url":"https://api.github.com/users/dwashko/followers","following_url":"https://api.github.com/users/dwashko/following{/other_user}","gists_url":"https://api.github.com/users/dwashko/gists{/gist_id}","starred_url":"https://api.github.com/users/dwashko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwashko/subscriptions","organizations_url":"https://api.github.com/users/dwashko/orgs","repos_url":"https://api.github.com/users/dwashko/repos","events_url":"https://api.github.com/users/dwashko/events{/privacy}","received_events_url":"https://api.github.com/users/dwashko/received_events","type":"User","site_admin":false},"body":"Replaced existing resource with new resources to support couchbase 4.0. Updated existing recipes to use new resources.","created_at":"2015-12-16T18:31:15Z","updated_at":"2015-12-18T18:45:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd2454cbbe75cad30d4852bfa496013e942b3aa6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12/commits","review_comments_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12/comments","review_comment_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/12/comments","statuses_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/statuses/6070cb34c55c6d20faa64dfb830b0d5053ef6a3d","head":{"label":"dwashko:master","ref":"master","sha":"6070cb34c55c6d20faa64dfb830b0d5053ef6a3d","user":{"login":"dwashko","id":3543470,"avatar_url":"https://avatars.githubusercontent.com/u/3543470?v=3","gravatar_id":"","url":"https://api.github.com/users/dwashko","html_url":"https://github.com/dwashko","followers_url":"https://api.github.com/users/dwashko/followers","following_url":"https://api.github.com/users/dwashko/following{/other_user}","gists_url":"https://api.github.com/users/dwashko/gists{/gist_id}","starred_url":"https://api.github.com/users/dwashko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwashko/subscriptions","organizations_url":"https://api.github.com/users/dwashko/orgs","repos_url":"https://api.github.com/users/dwashko/repos","events_url":"https://api.github.com/users/dwashko/events{/privacy}","received_events_url":"https://api.github.com/users/dwashko/received_events","type":"User","site_admin":false},"repo":{"id":33736564,"name":"chef-couchbase","full_name":"dwashko/chef-couchbase","owner":{"login":"dwashko","id":3543470,"avatar_url":"https://avatars.githubusercontent.com/u/3543470?v=3","gravatar_id":"","url":"https://api.github.com/users/dwashko","html_url":"https://github.com/dwashko","followers_url":"https://api.github.com/users/dwashko/followers","following_url":"https://api.github.com/users/dwashko/following{/other_user}","gists_url":"https://api.github.com/users/dwashko/gists{/gist_id}","starred_url":"https://api.github.com/users/dwashko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwashko/subscriptions","organizations_url":"https://api.github.com/users/dwashko/orgs","repos_url":"https://api.github.com/users/dwashko/repos","events_url":"https://api.github.com/users/dwashko/events{/privacy}","received_events_url":"https://api.github.com/users/dwashko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwashko/chef-couchbase","description":"Couchbase Cookbook","fork":true,"url":"https://api.github.com/repos/dwashko/chef-couchbase","forks_url":"https://api.github.com/repos/dwashko/chef-couchbase/forks","keys_url":"https://api.github.com/repos/dwashko/chef-couchbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwashko/chef-couchbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwashko/chef-couchbase/teams","hooks_url":"https://api.github.com/repos/dwashko/chef-couchbase/hooks","issue_events_url":"https://api.github.com/repos/dwashko/chef-couchbase/issues/events{/number}","events_url":"https://api.github.com/repos/dwashko/chef-couchbase/events","assignees_url":"https://api.github.com/repos/dwashko/chef-couchbase/assignees{/user}","branches_url":"https://api.github.com/repos/dwashko/chef-couchbase/branches{/branch}","tags_url":"https://api.github.com/repos/dwashko/chef-couchbase/tags","blobs_url":"https://api.github.com/repos/dwashko/chef-couchbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwashko/chef-couchbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwashko/chef-couchbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwashko/chef-couchbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwashko/chef-couchbase/statuses/{sha}","languages_url":"https://api.github.com/repos/dwashko/chef-couchbase/languages","stargazers_url":"https://api.github.com/repos/dwashko/chef-couchbase/stargazers","contributors_url":"https://api.github.com/repos/dwashko/chef-couchbase/contributors","subscribers_url":"https://api.github.com/repos/dwashko/chef-couchbase/subscribers","subscription_url":"https://api.github.com/repos/dwashko/chef-couchbase/subscription","commits_url":"https://api.github.com/repos/dwashko/chef-couchbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwashko/chef-couchbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwashko/chef-couchbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwashko/chef-couchbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwashko/chef-couchbase/contents/{+path}","compare_url":"https://api.github.com/repos/dwashko/chef-couchbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwashko/chef-couchbase/merges","archive_url":"https://api.github.com/repos/dwashko/chef-couchbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwashko/chef-couchbase/downloads","issues_url":"https://api.github.com/repos/dwashko/chef-couchbase/issues{/number}","pulls_url":"https://api.github.com/repos/dwashko/chef-couchbase/pulls{/number}","milestones_url":"https://api.github.com/repos/dwashko/chef-couchbase/milestones{/number}","notifications_url":"https://api.github.com/repos/dwashko/chef-couchbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwashko/chef-couchbase/labels{/name}","releases_url":"https://api.github.com/repos/dwashko/chef-couchbase/releases{/id}","created_at":"2015-04-10T15:44:05Z","updated_at":"2015-04-10T15:44:05Z","pushed_at":"2015-12-17T19:03:08Z","git_url":"git://github.com/dwashko/chef-couchbase.git","ssh_url":"git@github.com:dwashko/chef-couchbase.git","clone_url":"https://github.com/dwashko/chef-couchbase.git","svn_url":"https://github.com/dwashko/chef-couchbase","homepage":null,"size":159,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GannettDigital:master","ref":"master","sha":"ba1687dcdde4a7b206571be920a200f3e1f06507","user":{"login":"GannettDigital","id":1149177,"avatar_url":"https://avatars.githubusercontent.com/u/1149177?v=3","gravatar_id":"","url":"https://api.github.com/users/GannettDigital","html_url":"https://github.com/GannettDigital","followers_url":"https://api.github.com/users/GannettDigital/followers","following_url":"https://api.github.com/users/GannettDigital/following{/other_user}","gists_url":"https://api.github.com/users/GannettDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/GannettDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GannettDigital/subscriptions","organizations_url":"https://api.github.com/users/GannettDigital/orgs","repos_url":"https://api.github.com/users/GannettDigital/repos","events_url":"https://api.github.com/users/GannettDigital/events{/privacy}","received_events_url":"https://api.github.com/users/GannettDigital/received_events","type":"Organization","site_admin":false},"repo":{"id":30303885,"name":"chef-couchbase","full_name":"GannettDigital/chef-couchbase","owner":{"login":"GannettDigital","id":1149177,"avatar_url":"https://avatars.githubusercontent.com/u/1149177?v=3","gravatar_id":"","url":"https://api.github.com/users/GannettDigital","html_url":"https://github.com/GannettDigital","followers_url":"https://api.github.com/users/GannettDigital/followers","following_url":"https://api.github.com/users/GannettDigital/following{/other_user}","gists_url":"https://api.github.com/users/GannettDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/GannettDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GannettDigital/subscriptions","organizations_url":"https://api.github.com/users/GannettDigital/orgs","repos_url":"https://api.github.com/users/GannettDigital/repos","events_url":"https://api.github.com/users/GannettDigital/events{/privacy}","received_events_url":"https://api.github.com/users/GannettDigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GannettDigital/chef-couchbase","description":"Couchbase Cookbook","fork":true,"url":"https://api.github.com/repos/GannettDigital/chef-couchbase","forks_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/forks","keys_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/teams","hooks_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/hooks","issue_events_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/events{/number}","events_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/events","assignees_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/assignees{/user}","branches_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/branches{/branch}","tags_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/tags","blobs_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/statuses/{sha}","languages_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/languages","stargazers_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/stargazers","contributors_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/contributors","subscribers_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/subscribers","subscription_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/subscription","commits_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/contents/{+path}","compare_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/merges","archive_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/downloads","issues_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues{/number}","pulls_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls{/number}","milestones_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/milestones{/number}","notifications_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/labels{/name}","releases_url":"https://api.github.com/repos/GannettDigital/chef-couchbase/releases{/id}","created_at":"2015-02-04T14:54:36Z","updated_at":"2015-06-01T16:41:51Z","pushed_at":"2015-12-17T19:03:08Z","git_url":"git://github.com/GannettDigital/chef-couchbase.git","ssh_url":"git@github.com:GannettDigital/chef-couchbase.git","clone_url":"https://github.com/GannettDigital/chef-couchbase.git","svn_url":"https://github.com/GannettDigital/chef-couchbase","homepage":null,"size":83,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12"},"html":{"href":"https://github.com/GannettDigital/chef-couchbase/pull/12"},"issue":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/12"},"comments":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/GannettDigital/chef-couchbase/statuses/6070cb34c55c6d20faa64dfb830b0d5053ef6a3d"}}}}