)]}'
{"elements/haproxy/os-refresh-config/pre-configure.d/98-haproxy-iptables":[{"author":{"_account_id":215,"name":"Jon-Paul Sullivan","email":"j3p0uk@hotmail.com","username":"jonpaul-sullivan"},"change_message_id":"fd065433a4d9228cd728fc53bc18bc2e81ba4ded","unresolved":false,"context_lines":[{"line_number":18,"context_line":"fi"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"if [ -f $IPT_FILE ]; then"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"     iptables-restore \u003c $IPT_FILE"},{"line_number":23,"context_line":"fi"},{"line_number":24,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"fa98f980_29dd3a71","line":21,"updated":"2014-09-01 14:35:55.000000000","message":"There is no check in the debian/ubuntu branch here to see whether or not iptables is in use before setting the iptables file.\n\nWithout that check we may inadvertently start iptables with an incomplete set of rules and break the system.","commit_id":"7eaabb9da4c74db19c7ccb796c980d85770ab589"},{"author":{"_account_id":10007,"name":"Tapan Sharma","email":"tapan.sharma@workday.com","username":"taps"},"change_message_id":"bc9d89f1d01d63371cf4e45655339f30118d6e51","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"IPT_FILE\u003d"},{"line_number":5,"context_line":"if [[ \"redhatenterpriseserver centos fedora\" \u003d~ \"$DISTRO_NAME\" ]]; then"},{"line_number":6,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"baa201ad_d6f8e2c6","line":3,"updated":"2014-09-29 16:56:21.000000000","message":"Add:\n\nset -o pipefail","commit_id":"f91342061afd8ee41f23203c05fd57cc2035b165"},{"author":{"_account_id":10035,"name":"greghaynes","email":"greg@greghaynes.net","username":"greghaynes"},"change_message_id":"a6b96ce962257a229b40eebc441d9bd53f167133","unresolved":false,"context_lines":[{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"IPT_FILE\u003d"},{"line_number":5,"context_line":"if [[ \"redhatenterpriseserver centos fedora\" \u003d~ \"$DISTRO_NAME\" ]]; then"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    # Check if the iptables service is active"},{"line_number":8,"context_line":"    if systemctl is-active iptables.service ; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"fa98f980_5bb50f7d","line":5,"updated":"2014-09-06 23:01:38.000000000","message":"I dont believe these names are correct for $DISTRO_NAME, and im also unsure why we want to change from using lsb-release?","commit_id":"f91342061afd8ee41f23203c05fd57cc2035b165"},{"author":{"_account_id":10007,"name":"Tapan Sharma","email":"tapan.sharma@workday.com","username":"taps"},"change_message_id":"bc9d89f1d01d63371cf4e45655339f30118d6e51","unresolved":false,"context_lines":[{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"IPT_FILE\u003d"},{"line_number":5,"context_line":"if [[ \"redhatenterpriseserver centos fedora\" \u003d~ \"$DISTRO_NAME\" ]]; then"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    # Check if the iptables service is active"},{"line_number":8,"context_line":"    if systemctl is-active iptables.service ; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"baa201ad_76d81654","line":5,"updated":"2014-09-29 16:56:21.000000000","message":"check for rhel, rhel7 centos7 like below:\n\nif [[ \"rhel rhel7 centos7 fedora\" \u003d~ \"$DISTRO_NAME\" ]]; then\n...","commit_id":"f91342061afd8ee41f23203c05fd57cc2035b165"},{"author":{"_account_id":10007,"name":"Tapan Sharma","email":"tapan.sharma@workday.com","username":"taps"},"change_message_id":"ac95241f54ad315023428c798ad660d92e8912f8","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    # Check if the iptables service is active"},{"line_number":9,"context_line":"    if systemctl is-active iptables.service ; then"},{"line_number":10,"context_line":"        IPT_FILE\u003d/etc/sysconfig/iptables"},{"line_number":11,"context_line":"        if [ -f $IPT_FILE ]; then"},{"line_number":12,"context_line":"            iptables-restore \u003c $IPT_FILE"},{"line_number":13,"context_line":"        fi"},{"line_number":14,"context_line":"elif [[ \"debian ubuntu\" \u003d~ \"$DISTRO_NAME\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"baa201ad_c401c207","line":11,"updated":"2014-10-13 23:23:12.000000000","message":"This check for $IPT_FILE and restoring the iptables is not needed.","commit_id":"ea6639d7d0784df38703891774ebf3ca6d1f9ed4"},{"author":{"_account_id":12459,"name":"Stephanie Miller","email":"stephane@alum.mit.edu","username":"cinerama"},"change_message_id":"8360ddb189dacc83179b278497802ea1f4a3a4e3","unresolved":false,"context_lines":[{"line_number":11,"context_line":"        if [ -f $IPT_FILE ]; then"},{"line_number":12,"context_line":"            iptables-restore \u003c $IPT_FILE"},{"line_number":13,"context_line":"        fi"},{"line_number":14,"context_line":"elif [[ \"debian ubuntu\" \u003d~ \"$DISTRO_NAME\" ]]; then"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    IPT_FILE\u003d/etc/iptables/iptables"},{"line_number":17,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"baa201ad_f825cc0a","line":14,"updated":"2014-09-29 23:01:28.000000000","message":"I\u0027m inclined to agree with JP\u0027s earlier comment on having a check if active similar to what\u0027s happening in the RedHat bit of the if statement. One way to do it might be to look at the output of iptables-save.","commit_id":"ea6639d7d0784df38703891774ebf3ca6d1f9ed4"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"d36ac07e90a3ce83278917ccdfccc6c8ecce4def","unresolved":false,"context_lines":[{"line_number":11,"context_line":"        if [ -f $IPT_FILE ]; then"},{"line_number":12,"context_line":"            iptables-restore \u003c $IPT_FILE"},{"line_number":13,"context_line":"        fi"},{"line_number":14,"context_line":"elif [[ \"debian ubuntu\" \u003d~ \"$DISTRO_NAME\" ]]; then"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    IPT_FILE\u003d/etc/iptables/iptables"},{"line_number":17,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"baa201ad_3be6f9e8","line":14,"in_reply_to":"baa201ad_f825cc0a","updated":"2014-10-04 14:27:43.000000000","message":"+1 (to JP\u0027s and Stephanie\u0027s comments)","commit_id":"ea6639d7d0784df38703891774ebf3ca6d1f9ed4"},{"author":{"_account_id":12459,"name":"Stephanie Miller","email":"stephane@alum.mit.edu","username":"cinerama"},"change_message_id":"8360ddb189dacc83179b278497802ea1f4a3a4e3","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"if [ -f \"$IPT_FILE\" ]; then"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"     iptables-restore \u003c $IPT_FILE"},{"line_number":22,"context_line":"fi"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"if [ -n \"$IPT_FILE\" ]; then"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"baa201ad_d88808ea","line":21,"updated":"2014-09-29 23:01:28.000000000","message":"Could refactor this and the RedHat bits above so this doesn\u0027t run twice on those hosts.","commit_id":"ea6639d7d0784df38703891774ebf3ca6d1f9ed4"}]}
