forked from ISTI-ansible-roles/ansible-roles
couchbase dev hosts
This commit is contained in:
parent
d6fabdc929
commit
eff0a9746c
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
couchbase_install_packages: True
|
||||
couchbase_start_server: True
|
||||
|
||||
couchbase_console_port: 8091
|
||||
couchbase_xdcr_port: 8092
|
||||
couchbase_query_port: 8093
|
||||
|
||||
couchbase_admin_port: 9100
|
||||
couchbase_scan_port: 9101
|
||||
couchbase_http_port: 9102
|
||||
couchbase_streamInit_port: 9103
|
||||
couchbase_streamCatchup_port: 9104
|
||||
couchbase_streamMaint_port: 9105
|
||||
|
||||
couchbase_intREST_port: 9998
|
||||
couchbase_intGSI_port: 9999
|
||||
|
||||
couchbase_memcachedSSL_port: 11207
|
||||
|
||||
couchbase_intBacket_port: 11209
|
||||
|
||||
couchbase_memcached1_port: 11210
|
||||
couchbase_memcached2_port: 11211
|
||||
couchbase_encrip1_port: 11214
|
||||
couchbase_encrip2_port: 11215
|
||||
|
||||
couchbase_consoleSSL_port: 18091
|
||||
couchbase_xdcrSSL_port: 18092
|
||||
couchbase_N1QLSSL_port: 18093
|
||||
|
||||
couchbase_epmd_port: 4369
|
||||
|
||||
couchbase_dataExchangeFirst_port: 21100
|
||||
couchbase_dataExchangeLast_port: 21299
|
||||
|
||||
couchbase_allowed_hosts:
|
||||
- '{{ network.isti }}'
|
||||
- '{{ network.nmis }}'
|
||||
- '{{ ansible_default_ipv4.address }}/32'
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Restart couchbase
|
||||
service: name=couchbase-server state=restarted
|
||||
when: couchbase_start_server
|
||||
|
||||
- name: Update apt cache
|
||||
apt: update_cache=yes
|
||||
ignore_errors: true
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
- name: Get the meta package for the couchbase repository
|
||||
get_url: url=http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-2-amd64.deb dest=/root/couchbase-release-1.0-2-amd64.deb
|
||||
register: couchbase_repository
|
||||
tags: couchbase
|
||||
|
||||
- name: Install the package source and the Couchbase public keys
|
||||
shell: /usr/bin/dpkg -i /root/couchbase-release-1.0-2-amd64.deb
|
||||
when: ( couchbase_repository | changed )
|
||||
tags: couchbase
|
||||
|
||||
- name: Install the latest version of couchbase community server
|
||||
apt: pkg={{ item }} state=latest update_cache=yes
|
||||
with_items:
|
||||
- couchbase-server-community
|
||||
when:
|
||||
- couchbase_install_packages
|
||||
tags: couchbase
|
||||
|
||||
- name: Ensure couchbase is started and enabled
|
||||
service: name=couchbase-server state=started enabled=yes
|
||||
when: couchbase_start_server
|
||||
tags: couchbase
|
||||
|
||||
- name: Ensure couchbase is stopped and disabled
|
||||
service: name=couchbase-server state=stopped enabled=no
|
||||
when: not couchbase_start_server
|
||||
tags: couchbase
|
||||
|
Loading…
Reference in New Issue