Files
browbeat/ansible/install/roles/connmon/tasks/main.yml
Joe Talerico 912616634a Update Install work
+ Allow us to change usernames for non-ops installs. This mostly impacts
our dash/collectd work.
+ Updated browbeat, more options..
+ Removed more things pointed to the stack user
+ Remove EPEL

Change-Id: Ib6359b5dce9573a90c4c8d9f2f1853ef1d71bfec
2016-03-07 11:07:46 -05:00

46 lines
979 B
YAML

---
#
# Connmon Install
#
- name: Install pip
easy_install: name=pip
- name: Install connmon
pip: name=connmon
#
# Connmon Setup
#
- name: Configure Connmon Host IP Address
template:
src: connmon.cfg.j2
dest: /etc/connmon.cfg
owner: root
group: root
mode: 0644
# To remove the screen session: screen -X -S connmond kill
- name: Run connmond in screen session on undercloud
command: screen -d -S connmond -m connmond
when: undercloud
changed_when: false
- name: Change connmon result owner
command: chown "{{ local_remote_user }}":"{{ local_remote_user }}" /tmp/connmon_results.csv
when: undercloud
changed_when: false
ignore_errors: true
- name: check iptables
shell: iptables -nvL | grep -q "dpt:5800"
changed_when: false
when: undercloud
register: connmon_port
ignore_errors: true
- name: open up iptables
shell: /usr/sbin/iptables -I INPUT 1 -p tcp --dport 5800 -j ACCEPT
when: undercloud and connmon_port.rc == 1