Moved static vars to group_vars

This commit is contained in:
Joe Talerico 2015-11-09 16:02:02 -05:00
parent b76fb24200
commit 3f751961da
2 changed files with 5 additions and 3 deletions

View File

@ -9,3 +9,6 @@ num_workers: "{{ lookup('env','NUM_WORKERS') }}"
#
connmon: True
connmon: "{{ lookup('env','CONNMON') }}"
rabbitmq_fd: 16238
mariadb_max_connections: 4096

View File

@ -11,11 +11,10 @@
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
register: max_connections_result
- fail: "The database does not have max_connections set properly"
failed_when: max_connections_result.stdout|int < 4096
failed_when: max_connections_result.stdout|int < mariadb_max_connections
- name : Check rabbitmq file descriptors
shell: rabbitmqctl status | grep file_descriptors | awk -F',' '{print $3}' | sed 's/.$//'
register: rabbitmq_fd_result
- fail: "RabbitMQ does not have fd setup proerply"
failed_when: rabbitmq_fd_result.stdout|int < 16284
failed_when: rabbitmq_fd_result.stdout|int < rabbitmq_fd