added haproxy config
diff --git a/setup-ha-proxy.yml b/setup-ha-proxy.yml index 847e3bc..5437d7e 100644 --- a/setup-ha-proxy.yml +++ b/setup-ha-proxy.yml
@@ -1,7 +1,9 @@ --- - hosts: haproxy2 become: true - vars: + vars: + client_id: ameQ5tEp9iNLsPvwjCAKTejD561knLfW + client_secret: RXb4mGcWgXcLa6m7 haproxy_socket: '/var/lib/haproxy/stats' haproxy_chroot: '/var/lib/haproxy' haproxy_user: 'haproxy' @@ -14,53 +16,20 @@ haproxy_backend_mode: 'http' haproxy_backend_balance_method: 'roundrobin' haproxy_backend_httpchk: '' -# haproxy_backend_servers: -# - name: dc_1_rmp0 -# address: 172.31.30.210:9001 -# - name: dc_1_rmp1 -# address: 172.31.27.249:9001 -# - name: dc_1_rmp2 -# address: 172.31.28.229:9001 -# - name: dc_1_rmp3 -# address: 172.31.21.163:9001 -# - name: dc_1_rmp4 -# address: 172.31.28.183:9001 -# - name: dc_1_rmp5 -# address: 172.31.27.153:9001 -# - name: dc_1_rmp6 -# address: 172.31.21.127:9001 -# - name: dc_2_rmp0 -# address: 172.31.23.241:9001 -# - name: dc_2_rmp1 -# address: 172.31.22.237:9001 -# - name: dc_2_rmp2 -# address: 172.31.22.85:9001 -# - name: dc_2_rmp3 -# address: 172.31.26.205:9001 -# - name: dc_2_rmp4 -# address: 172.31.27.45:9001 -# - name: dc_2_rmp5 -# address: 172.31.16.106:9001 -# - name: dc_2_rmp6 -# address: 172.31.24.230:9001 roles: - ansible-role-haproxy -# tasks: -# - get_url: -# url: http://www.haproxy.org/download/1.5/src/haproxy-1.5.19.tar.gz -# dest: haproxy-1.5.19.tar.gz -# -# - unarchive: -# src: haproxy-1.5.19.tar.gz -# dest: /tmp/ -# -# - yum: -# name: "@Development Tools" -# state: present -# -# - shell: sudo make install -# args: -# chdir: /tmp/haproxy-1.5.19 -# + tasks: + - name: Use haproxy + ignore_errors: yes + connection: local + become: no + uri: + url: "http://34.207.183.115:9001/oauth/client_credential/accesstoken" + method: POST + headers: + Host: "api.tmobile.com" + Content-Type: "application/x-www-form-urlencoded" + body: grant_type=client_credentials&client_id={{ client_id }}&client_secret={{ client_secret }} + with_sequence: start=1 end=5000
diff --git a/update-replication-factor.yml b/update-replication-factor.yml index 2bdc370..faf9efd 100644 --- a/update-replication-factor.yml +++ b/update-replication-factor.yml
@@ -27,7 +27,7 @@ hosts: rmp consistency_level: 'TWO' property_file: 'message-processor' - cache_enable: 'false' + enable_cache: 'false' - name: Set management server consistencylevel=TWO include: consistency.yml @@ -36,7 +36,7 @@ hosts: ms consistency_level: 'TWO' property_file: 'management-server' - cache_enable: 'false' + enable_cache: 'false' - name: Rolling restart of Cassandra, RMP and MS include: rolling-restart.yml @@ -84,7 +84,7 @@ hosts: rmp consistency_level: 'LOCAL_QUORUM' property_file: 'message-processor' - cache_enable: 'true' + enable_cache: 'true' - name: Set management server consistencylevel=LOCAL_QUORUM include: consistency.yml @@ -93,7 +93,7 @@ hosts: ms consistency_level: 'LOCAL_QUORUM' property_file: 'management-server' - cache_enable: 'true' + enable_cache: 'true' - name: Rolling restart of Cassandra, RMP and MS include: rolling-restart.yml