)]}'
{"scripts/bootstrap-deployment-host.sh":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"cb5ce768b732c788605ca2c3080d65199fb0d756","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        ;;"},{"line_number":54,"context_line":"esac"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Configure NTP to synchronize with a suitable time source if necessary"},{"line_number":57,"context_line":"# Scenario: Can not connect to internet"},{"line_number":58,"context_line":"loadvars NTP_SERVER \"ntp.ubuntu.com\""},{"line_number":59,"context_line":"service ntp stop"},{"line_number":60,"context_line":"ntpdate $NTP_SERVER"},{"line_number":61,"context_line":"if [[ $NTP_SERVER !\u003d \"ntp.ubuntu.com\" ]]; then"},{"line_number":62,"context_line":"  sed -i \"/^pool.*iburst/d\" /etc/ntp.conf"},{"line_number":63,"context_line":"  sed -i \"/pool ntp.ubuntu.com/i\\pool ${NTP_SERVER} iburst\" /etc/ntp.conf"},{"line_number":64,"context_line":"fi"},{"line_number":65,"context_line":"service ntp start"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"echo \"Deployment host is bootstrapped and ready for use.\""}],"source_content_type":"text/x-sh","patch_set":2,"id":"3f044301_b02812e2","line":65,"range":{"start_line":56,"start_character":0,"end_line":65,"end_character":17},"updated":"2017-05-09 08:40:49.000000000","message":"This is making assumptions about the preferred time update mechanism which we expect a deployer to have done in the host setup (as per the docs), and a time update mechanism is already implemented in the security role (chrony).","commit_id":"c11d32b62d2a0840ba8d9865bd556d92a621208d"},{"author":{"_account_id":25059,"name":"Fergus Yu","email":"open.fyu@gmail.com","username":"yumingfei"},"change_message_id":"9e631db96aa1321e9e7bf23979aafc2e2f717432","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        ;;"},{"line_number":54,"context_line":"esac"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Configure NTP to synchronize with a suitable time source if necessary"},{"line_number":57,"context_line":"# Scenario: Can not connect to internet"},{"line_number":58,"context_line":"loadvars NTP_SERVER \"ntp.ubuntu.com\""},{"line_number":59,"context_line":"service ntp stop"},{"line_number":60,"context_line":"ntpdate $NTP_SERVER"},{"line_number":61,"context_line":"if [[ $NTP_SERVER !\u003d \"ntp.ubuntu.com\" ]]; then"},{"line_number":62,"context_line":"  sed -i \"/^pool.*iburst/d\" /etc/ntp.conf"},{"line_number":63,"context_line":"  sed -i \"/pool ntp.ubuntu.com/i\\pool ${NTP_SERVER} iburst\" /etc/ntp.conf"},{"line_number":64,"context_line":"fi"},{"line_number":65,"context_line":"service ntp start"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"echo \"Deployment host is bootstrapped and ready for use.\""}],"source_content_type":"text/x-sh","patch_set":2,"id":"3f044301_59b9f92b","line":65,"range":{"start_line":56,"start_character":0,"end_line":65,"end_character":17},"in_reply_to":"3f044301_b02812e2","updated":"2017-05-09 11:09:15.000000000","message":"Yes, these codes look immature.I just want to express this idea for guiding script. :P\nAnd this script only works for deployment host,so I think it is none of security role\u0027s business.","commit_id":"c11d32b62d2a0840ba8d9865bd556d92a621208d"}],"scripts/scripts-library.sh":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"cb5ce768b732c788605ca2c3080d65199fb0d756","unresolved":false,"context_lines":[{"line_number":296,"context_line":"  TS\u003d\"$(date +\"%H-%M-%S\")\""},{"line_number":297,"context_line":"  assist_log\u003d\"/tmp/ops_upgrade_${TS}.log\""},{"line_number":298,"context_line":"  apt-get update"},{"line_number":299,"context_line":"  apt-get dist-upgrade \u003e ${assist_log} || true"},{"line_number":300,"context_line":"  if tail -n 10 ${assist_log} | grep \u0027update-initramfs:\u0027; then"},{"line_number":301,"context_line":"    info_block \"Kernel packages were upgraded, please reboot then rerun this script.\""},{"line_number":302,"context_line":"    exit"}],"source_content_type":"text/x-sh","patch_set":2,"id":"3f044301_501d4ebb","line":299,"range":{"start_line":299,"start_character":0,"end_line":299,"end_character":46},"updated":"2017-05-09 08:40:49.000000000","message":"I expect that this should be done by a deployer prior to executing any any OSA scripts. Why are we forcing this?","commit_id":"c11d32b62d2a0840ba8d9865bd556d92a621208d"},{"author":{"_account_id":25059,"name":"Fergus Yu","email":"open.fyu@gmail.com","username":"yumingfei"},"change_message_id":"9e631db96aa1321e9e7bf23979aafc2e2f717432","unresolved":false,"context_lines":[{"line_number":296,"context_line":"  TS\u003d\"$(date +\"%H-%M-%S\")\""},{"line_number":297,"context_line":"  assist_log\u003d\"/tmp/ops_upgrade_${TS}.log\""},{"line_number":298,"context_line":"  apt-get update"},{"line_number":299,"context_line":"  apt-get dist-upgrade \u003e ${assist_log} || true"},{"line_number":300,"context_line":"  if tail -n 10 ${assist_log} | grep \u0027update-initramfs:\u0027; then"},{"line_number":301,"context_line":"    info_block \"Kernel packages were upgraded, please reboot then rerun this script.\""},{"line_number":302,"context_line":"    exit"}],"source_content_type":"text/x-sh","patch_set":2,"id":"3f044301_b9259dad","line":299,"range":{"start_line":299,"start_character":0,"end_line":299,"end_character":46},"in_reply_to":"3f044301_501d4ebb","updated":"2017-05-09 11:09:15.000000000","message":"I expect to execute bootstrap-deployment-host.sh as a guide script at the beginning of preparing deployment host.Because I met dependence problems many times when installing packages.So I think some guide-steps are useful.","commit_id":"c11d32b62d2a0840ba8d9865bd556d92a621208d"}]}
