{"id":1586,"date":"2014-12-16T19:26:41","date_gmt":"2014-12-16T19:26:41","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=1586"},"modified":"2017-03-01T07:38:58","modified_gmt":"2017-03-01T15:38:58","slug":"create-couchbase-cluster-with-ansible","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/create-couchbase-cluster-with-ansible\/","title":{"rendered":"Criar um cluster do Couchbase com o Ansible"},"content":{"rendered":"<div>\n<div>\n<p style=\"margin-bottom: 0px; font-family: ff-kievit-web, 'MS UI Gothic', 'MS PGothic', Osaka, Batang, Georgia, 'Times New Roman', Times, sans-serif; font-size: 16px;\"><em style=\"line-height: 23px; font-size: 1em; font-family: ff-meta-serif-web-pro-1, ff-meta-serif-web-pro-2, Georgia, 'Times New Roman', Times, serif;\">[Este blog foi distribu\u00eddo pelo site https:\/\/blog.grallandco.com].<\/em><\/p>\n<div>\u00a0<\/div>\n<\/div>\n<\/div>\n<h2>Introdu\u00e7\u00e3o<\/h2>\n<div>\u00a0<\/div>\n<div>Quando estava procurando uma maneira mais eficaz de criar meu cluster, perguntei a alguns administradores de sistemas quais ferramentas eu deveria usar para fazer isso. A resposta que recebi durante <a href=\"https:\/\/www.netways.de\/osdc\" target=\"_blank\">OSDC<\/a> n\u00e3o foi <a href=\"https:\/\/puppetlabs.com\/\" target=\"_blank\">Marionete<\/a>, nem <a href=\"https:\/\/www.opscode.com\/chef\/\" target=\"_blank\">Chefe de cozinha<\/a>, mas foi <a href=\"https:\/\/ansible.cc\/\" target=\"_blank\">Ansible<\/a>.<\/div>\n<div>\u00a0<\/div>\n<div>Este artigo mostra como voc\u00ea pode configurar e criar facilmente um cluster do Couchbase implantado em v\u00e1rias caixas Linux... e a \u00fanica coisa de que voc\u00ea precisa nessas caixas \u00e9 um servidor SSH!<\/div>\n<div>\u00a0<\/div>\n<div>Agradecimentos a <a href=\"https:\/\/jpmens.net\/\">Jan-Piet Mens<\/a> que foi uma das pessoas que me convenceu a usar o Ansible e respondeu \u00e0s perguntas que eu tinha sobre o Ansible.<\/div>\n<div>\u00a0<\/div>\n<div>Voc\u00ea pode assistir \u00e0 demonstra\u00e7\u00e3o abaixo e\/ou ver todos os detalhes no pr\u00f3ximo par\u00e1grafo.<\/div>\n<div>\u00a0<\/div>\n<div><iframe loading=\"lazy\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/COb6y89xcYY\" width=\"560\"><\/iframe><\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<h2>Ansible<\/h2>\n<div>\n<div>O Ansible \u00e9 um software de c\u00f3digo aberto que permite ao administrador configurar e gerenciar v\u00e1rios computadores por meio de SSH.<\/div>\n<div>\u00a0<\/div>\n<div>N\u00e3o entrarei em todos os detalhes sobre a instala\u00e7\u00e3o, basta seguir as etapas documentadas no Guia de Introdu\u00e7\u00e3o. Como voc\u00ea pode ver neste guia, voc\u00ea s\u00f3 precisa do Python e de algumas outras bibliotecas e clonar o projeto Ansible do Github. Portanto, espero que voc\u00ea tenha o Ansible funcionando com seus v\u00e1rios servidores nos quais deseja implantar o Couchbase.<\/div>\n<div>\u00a0<\/div>\n<div>Al\u00e9m disso, para esses primeiros scripts, estou usando o root no meu servidor para fazer todas as opera\u00e7\u00f5es. Portanto, certifique-se de ter registrado as chaves ssh do root no seu servidor de administra\u00e7\u00e3o, de onde est\u00e1 executando os scripts do Ansible.<\/div>\n<div>\u00a0<\/div>\n<h3>Criar um cluster do Couchbase<\/h3>\n<div>\n<div>Portanto, antes de entrar nos detalhes do script Ansible, \u00e9 interessante explicar como criar um cluster do Couchbase. Portanto, aqui est\u00e3o as 5 etapas para criar e configurar um cluster:<\/div>\n<div>\u00a0<\/div>\n<ol>\n<li>Instale o Couchbase em cada n\u00f3 do cluster, conforme documentado <a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-getting-started-install-ubuntu.html\/\" target=\"_blank\">aqui<\/a>.<\/li>\n<li>Pegue um dos n\u00f3s e \"inicialize\" o cluster, usando <a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-cli-other-examples.html\/\" target=\"_blank\">inicializa\u00e7\u00e3o do cluster<\/a> comando.<\/li>\n<li>Adicione os outros n\u00f3s ao cluster, usando <a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-cli-other-examples.html\/\" target=\"_blank\">adicionar servidor<\/a> comando.<\/li>\n<li>Reequil\u00edbrio, usando <a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-cli-other-examples.html\/\" target=\"_blank\">reequil\u00edbrio<\/a> comando.\u00a0<\/li>\n<li>Crie um Bucket, usando <a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-cli-other-examples.html\/\" target=\"_blank\">criar balde<\/a> comando. \u00a0\u00a0<\/li>\n<\/ol>\n<div>Portanto, o objetivo agora \u00e9 criar um Ansible Playbook que execute essas etapas para voc\u00ea.<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\n<h6>Manual do Ansible para o Couchbase<\/h6>\n<div><span style=\"line-height: 1;\">A primeira coisa que voc\u00ea precisa \u00e9 ter a lista de hosts que deseja segmentar, portanto, criei um arquivo <a href=\"https:\/\/github.com\/tgrall\/couchbase-ansible-playbook\/blob\/master\/hosts\" target=\"_blank\">arquivo hosts<\/a> que cont\u00e9m todos os meus servidores organizados em dois grupos:<\/span><\/div>\n<div>\u00a0<\/div>\n<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">[couchbase-main]<br \/>vm1.grallandco.com<\/p>\n<p>[n\u00f3s do couchbase]<br \/>vm2.grallandco.com<br \/>vm3.grallandco.com<\/div>\n<\/div>\n<\/div>\n<div>O grupo [couchbase-main] \u00e9 apenas um dos n\u00f3s que conduzir\u00e3o a instala\u00e7\u00e3o e a configura\u00e7\u00e3o. Como voc\u00ea provavelmente j\u00e1 sabe, o Couchbase n\u00e3o tem um mestre... Todos os n\u00f3s do cluster s\u00e3o id\u00eanticos.<\/div>\n<div>\u00a0<\/div>\n<div>Para facilitar a configura\u00e7\u00e3o do cluster, criei outro arquivo que cont\u00e9m todos os par\u00e2metros que devem ser enviados a todos os v\u00e1rios comandos. Esse arquivo est\u00e1 localizado no diret\u00f3rio <a href=\"https:\/\/github.com\/tgrall\/couchbase-ansible-playbook\/blob\/master\/group_vars\/all\" target=\"_blank\">group_vars\/all<\/a> consulte a se\u00e7\u00e3o <a href=\"https:\/\/ansible.cc\/docs\/patterns.html#splitting-out-host-and-group-specific-data\" target=\"_blank\">Separa\u00e7\u00e3o de dados espec\u00edficos de host e grupo<\/a> na documenta\u00e7\u00e3o.<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">Usu\u00e1rio e senha do administrador do #<br \/>admin_user: Administrador<br \/>admin_password: senha<\/p>\n<p>Cota de RAM de # para o cluster<br \/>cluster_ram_quota: 1024<\/p>\n<p>Balde # e r\u00e9plicas<br \/>bucket_name: ansible<br \/>bucket_ram_quota: 512<br \/>num_replicas: 2<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div>Use esse arquivo para configurar seu cluster.<\/div>\n<div>\u00a0<\/div>\n<div>Vamos descrever o <a href=\"https:\/\/github.com\/tgrall\/couchbase-ansible-playbook\/blob\/master\/couchbase.yml\" target=\"_blank\">arquivo de playbook<\/a> :<\/div>\n<div>\u00a0<\/div>\n<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">- Nome: Instala\u00e7\u00e3o do Couchbase<br \/>\u00a0 hosts: todos<br \/>\u00a0 usu\u00e1rio: root<br \/>\u00a0 \u00a0<br \/>\u00a0 tarefas:<\/p>\n<p>\u00a0 - nome: download do pacote do Couchbase<br \/>\u00a0 \u00a0 get_url: url=https:\/\/packages.couchbase.com\/releases\/2.0.1\/couchbase-server-enterprise_x86_64_2.0.1.deb dest=~\/.<br \/>\u00a0<br \/>\u00a0 - name: Instalar depend\u00eancias<br \/>\u00a0 \u00a0 apt: pkg=libssl0.9.8 state=present<\/p>\n<p>\u00a0 - nome: Instalar o arquivo .deb do Couchbase em todas as m\u00e1quinas<br \/>\u00a0 \u00a0 shell: dpkg -i ~\/couchbase-server-enterprise_x86_64_2.0.1.deb<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div>Como esperado, a instala\u00e7\u00e3o deve ser feita em <strong>todos<\/strong> servidores como <strong>raiz<\/strong> ent\u00e3o precisamos executar 3 tarefas:\u00a0<\/div>\n<ol>\n<li>Fa\u00e7a o download do produto; o comando get_url s\u00f3 far\u00e1 o download do arquivo se ele ainda n\u00e3o estiver presente<\/li>\n<li>Instale as depend\u00eancias com o comando apt; o state=present permite que o sistema instale apenas esse pacote se ele ainda n\u00e3o estiver presente<\/li>\n<li>Instale o Couchbase com um simples comando shell. (aqui n\u00e3o estou verificando se o Couchbase j\u00e1 est\u00e1 instalado)<\/li>\n<\/ol>\n<div>Portanto, j\u00e1 instalamos o Couchbase em todos os n\u00f3s. Vamos agora configurar o primeiro n\u00f3 e adicionar os outros:\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">- name: Inicializa o cluster e adiciona os n\u00f3s ao cluster<br \/>\u00a0 hosts: couchbase-main<br \/>\u00a0 usu\u00e1rio: root <\/p>\n<p>\u00a0 tarefas:<br \/>\u00a0 - nome: Configurar o n\u00f3 principal<br \/>\u00a0 \u00a0 shell: \/opt\/couchbase\/bin\/couchbase-cli cluster-init -c 127.0.0.1:8091 -cluster-init-username=${admin_user} -cluster-init-password=${admin_password} -cluster-init-port=8091 -cluster-init-ramsize=${cluster_ram_quota} <\/p>\n<p>\u00a0 - nome: Criar script de shell para configurar o n\u00f3 principal<br \/>\u00a0 \u00a0 a\u00e7\u00e3o: template src=couchbase-add-node.j2 dest=\/tmp\/addnodes.sh mode=750<br \/>\u00a0 <br \/>\u00a0 - nome: Launch config script (Iniciar script de configura\u00e7\u00e3o)<br \/>\u00a0 \u00a0 a\u00e7\u00e3o: shell \/tmp\/addnodes.sh<br \/>\u00a0 <br \/>\u00a0 - nome: Rebalancear o cluster<br \/>\u00a0 \u00a0 shell: \/opt\/couchbase\/bin\/couchbase-cli rebalance -c 127.0.0.1:8091 -u ${admin_user} -p ${admin_password} \u00a0 \u00a0 \u00a0<br \/>\u00a0 <br \/>\u00a0 - name: create bucket ${bucket_name} with ${num_replicas} replicas<br \/>\u00a0 \u00a0 shell: \/opt\/couchbase\/bin\/couchbase-cli bucket-create -c 127.0.0.1:8091 -bucket=${bucket_name} -bucket-type=couchbase -bucket-port=11211 -bucket-ramsize=${bucket_ram_quota} -bucket-replica=${num_replicas} -u ${admin_user} -p ${admin_password}<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>Agora precisamos executar tarefas espec\u00edficas no servidor \"principal\":<\/div>\n<ul>\n<li>Inicializa\u00e7\u00e3o do cluster usando a CLI do Couchbase, nas linhas 06 e 07<\/li>\n<\/ul>\n<div>\u00a0<\/div>\n<div>Em seguida, o sistema precisa solicitar a todos os outros servidores que entrem no cluster. Para isso, o sistema precisa obter os v\u00e1rios IPs e, para cada endere\u00e7o IP, executar o comando add-server com o endere\u00e7o IP. At\u00e9 onde sei, n\u00e3o \u00e9 poss\u00edvel obter o endere\u00e7o IP do arquivo YAML do playbook principal, portanto, pe\u00e7o ao sistema que gere um script de shell para adicionar cada n\u00f3 e executar o script.\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>Isso \u00e9 feito a partir da linha 09 a 13.<\/div>\n<div>\u00a0<\/div>\n<div>Para gerar o script de shell, eu uso <a href=\"https:\/\/ansible.cc\/docs\/modules.html#template\" target=\"_blank\">Modelo Ansible<\/a>O modelo est\u00e1 dispon\u00edvel na se\u00e7\u00e3o <a href=\"https:\/\/github.com\/tgrall\/couchbase-ansible-playbook\/blob\/master\/couchbase-add-node.j2\" target=\"_blank\">couchbase-add-node.j2<\/a> arquivo.\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">{% for host in groups['couchbase-nodes'] %}<\/p>\n<p>\u00a0\/opt\/couchbase\/bin\/couchbase-cli server-add -c 127.0.0.1:8091 -u ${admin_user} -p ${admin_password} -server-add={{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8091 -server-add-username=${admin_user} -server-add-password=${admin_password} \u00a0 <\/p>\n<p>{% endfor %}<\/p><\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>\n<div>Como voc\u00ea pode ver, esse script faz um loop em cada servidor do grupo [couchbase-nodes] e usa seu endere\u00e7o IP para adicionar o n\u00f3 ao cluster.\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>Por fim, o script reequilibra o cluster (linha 16) e adiciona um novo bucket (linha 19).<\/div>\n<div>\u00a0<\/div>\n<div>Agora voc\u00ea est\u00e1 pronto para executar o playbook usando o seguinte comando :\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">.\/bin\/ansible-playbook -i .\/couchbase\/hosts .\/couchbase\/couchbase.yml -vv<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>\n<div>Estou adicionando o par\u00e2metro -vv para permitir que voc\u00ea veja mais informa\u00e7\u00f5es sobre o que est\u00e1 acontecendo durante a execu\u00e7\u00e3o do script.\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>Isso executar\u00e1 todos os comandos descritos no playbook e, ap\u00f3s alguns segundos, voc\u00ea ter\u00e1 um novo cluster pronto para ser usado! Voc\u00ea pode, por exemplo, abrir um navegador e acessar o Console de administra\u00e7\u00e3o do Couchase e verificar se o cluster est\u00e1 configurado conforme o esperado.<\/div>\n<div>\u00a0<\/div>\n<div class=\"rtecenter\"><img decoding=\"async\" alt=\"Couchbase Cluster\" src=\"https:\/\/1.bp.blogspot.com\/-L-3yeJZECwY\/Uaj_PA_aVUI\/AAAAAAAAAcg\/fKBZ47Nhd4M\/s320\/Screen+Shot+2013-05-31+at+9.50.44+PM.png\" style=\"width: 320px; height: 220px;\" \/><\/div>\n<\/div>\n<div>Como voc\u00ea pode ver, \u00e9 muito f\u00e1cil e r\u00e1pido criar um novo cluster usando o Ansible.<\/div>\n<div>\u00a0<\/div>\n<div>Tamb\u00e9m criei um script para desinstalar corretamente o cluster... basta iniciar<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace;\">.\/bin\/ansible-playbook -i .\/couchbase\/hosts .\/couchbase\/couchbase-uninstall.yml<\/div>\n<\/div>\n<\/div>\n<div>\u00a0<\/div>","protected":false},"excerpt":{"rendered":"<p>[This blog was syndicated from https:\/\/blog.grallandco.com] \u00a0 Introduction \u00a0 When I was looking for a more effective way to create my cluster I asked some sysadmins which tools I should use to do it. The answer I got during OSDC [&hellip;]<\/p>","protected":false},"author":2,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[1299,1300],"ppma_author":[8968],"class_list":["post-1586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-ansible","tag-cluster"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create a Couchbase Cluster with Ansible - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/create-couchbase-cluster-with-ansible\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Couchbase Cluster with Ansible\" \/>\n<meta property=\"og:description\" content=\"[This blog was syndicated from https:\/\/blog.grallandco.com] \u00a0 Introduction \u00a0 When I was looking for a more effective way to create my cluster I asked some sysadmins which tools I should use to do it. The answer I got during OSDC [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/create-couchbase-cluster-with-ansible\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-16T19:26:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-01T15:38:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"The Couchbase Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"The Couchbase Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/\"},\"author\":{\"name\":\"The Couchbase Team\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/764f4a6771ee19bc7af70b70a326fb93\"},\"headline\":\"Create a Couchbase Cluster with Ansible\",\"datePublished\":\"2014-12-16T19:26:41+00:00\",\"dateModified\":\"2017-03-01T15:38:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/\"},\"wordCount\":1092,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"keywords\":[\"Ansible\",\"Cluster\"],\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/\",\"name\":\"Create a Couchbase Cluster with Ansible - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2014-12-16T19:26:41+00:00\",\"dateModified\":\"2017-03-01T15:38:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Couchbase Cluster with Ansible\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/764f4a6771ee19bc7af70b70a326fb93\",\"name\":\"The Couchbase Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/7befc37d02226b59499817eafdec60c3\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4c18c758421903398e84d6c9560f319f39c665798d7d23e6a6f9dff8a8f984e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4c18c758421903398e84d6c9560f319f39c665798d7d23e6a6f9dff8a8f984e?s=96&d=mm&r=g\",\"caption\":\"The Couchbase Team\"},\"description\":\"Jennifer Garcia is a Senior Web Manager at Couchbase Inc. As the website manager, Jennifer has overall responsibility for the website properties including design, implementation, content, and performance.\",\"sameAs\":[\"https:\/\/www.couchbase.com\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/pt\/author\/jennifer-garcia\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create a Couchbase Cluster with Ansible - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/create-couchbase-cluster-with-ansible\/","og_locale":"pt_BR","og_type":"article","og_title":"Create a Couchbase Cluster with Ansible","og_description":"[This blog was syndicated from https:\/\/blog.grallandco.com] \u00a0 Introduction \u00a0 When I was looking for a more effective way to create my cluster I asked some sysadmins which tools I should use to do it. The answer I got during OSDC [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/create-couchbase-cluster-with-ansible\/","og_site_name":"The Couchbase Blog","article_published_time":"2014-12-16T19:26:41+00:00","article_modified_time":"2017-03-01T15:38:58+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"The Couchbase Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"The Couchbase Team","Est. reading time":"5 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/"},"author":{"name":"The Couchbase Team","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/764f4a6771ee19bc7af70b70a326fb93"},"headline":"Create a Couchbase Cluster with Ansible","datePublished":"2014-12-16T19:26:41+00:00","dateModified":"2017-03-01T15:38:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/"},"wordCount":1092,"commentCount":5,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["Ansible","Cluster"],"articleSection":["Uncategorized"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/","url":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/","name":"Create a Couchbase Cluster with Ansible - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2014-12-16T19:26:41+00:00","dateModified":"2017-03-01T15:38:58+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/create-couchbase-cluster-with-ansible\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create a Couchbase Cluster with Ansible"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/764f4a6771ee19bc7af70b70a326fb93","name":"A equipe do Couchbase","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/7befc37d02226b59499817eafdec60c3","url":"https:\/\/secure.gravatar.com\/avatar\/b4c18c758421903398e84d6c9560f319f39c665798d7d23e6a6f9dff8a8f984e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4c18c758421903398e84d6c9560f319f39c665798d7d23e6a6f9dff8a8f984e?s=96&d=mm&r=g","caption":"The Couchbase Team"},"description":"Jennifer Garcia \u00e9 gerente s\u00eanior de Web na Couchbase Inc. Como gerente do site, Jennifer tem a responsabilidade geral pelas propriedades do site, incluindo design, implementa\u00e7\u00e3o, conte\u00fado e desempenho.","sameAs":["https:\/\/www.couchbase.com"],"url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/jennifer-garcia\/"}]}},"authors":[{"term_id":8968,"user_id":2,"is_guest":0,"slug":"jennifer-garcia","display_name":"The Couchbase Team","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/b4c18c758421903398e84d6c9560f319f39c665798d7d23e6a6f9dff8a8f984e?s=96&d=mm&r=g","author_category":"","last_name":"Garcia","first_name":"Jennifer","job_title":"","user_url":"https:\/\/www.couchbase.com","description":"Jennifer Garcia \u00e9 gerente s\u00eanior de Web na Couchbase Inc. Como gerente do site, Jennifer tem a responsabilidade geral pelas propriedades do site, incluindo design, implementa\u00e7\u00e3o, conte\u00fado e desempenho."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=1586"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=1586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=1586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=1586"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=1586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}