)]}'
{"elements/icinga-cgi/README.md":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"5867d564e5c4b900512ab836305df5c0a03b4da3","unresolved":false,"context_lines":[{"line_number":5,"context_line":"ssh monitoring."},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Access via http interface at http://\u003cVmIp\u003e/icinga."},{"line_number":8,"context_line":"Sets the default web user name as icingaadmin with a password of admin."},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Options to set the web password and parse nova list output for initial ip list"},{"line_number":11,"context_line":"can be provided via heat. For example:"}],"source_content_type":"text/x-gfm","patch_set":2,"id":"AAAAXH%2F%2FOS4%3D","line":8,"updated":"2014-04-23 08:23:28.000000000","message":"I suggest we don\u0027t have default passwords. We should just fail if they\u0027re not set.","commit_id":"c40696851e5f22b07759d42a9df93741ed1c0884"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"5867d564e5c4b900512ab836305df5c0a03b4da3","unresolved":false,"context_lines":[{"line_number":11,"context_line":"can be provided via heat. For example:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    icinga:"},{"line_number":14,"context_line":"        adm_web_passwd: icingaadmin"},{"line_number":15,"context_line":"        nova_host_ip: 192.0.2.1"},{"line_number":16,"context_line":"        nova_os_password: unset"},{"line_number":17,"context_line":"        nova_os_username: admin"}],"source_content_type":"text/x-gfm","patch_set":2,"id":"AAAAXH%2F%2FOSg%3D","line":14,"updated":"2014-04-23 08:23:28.000000000","message":"Why is this abbreviated? wouldn\u0027t admin_web_password make more sense?","commit_id":"c40696851e5f22b07759d42a9df93741ed1c0884"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":11,"context_line":"can be provided via heat. For example:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    icinga:"},{"line_number":14,"context_line":"        admin_web_passwd: icingaadmin"},{"line_number":15,"context_line":"        nova_host_ip: 192.0.2.1"},{"line_number":16,"context_line":"        nova_os_password: unset"},{"line_number":17,"context_line":"        nova_os_username: admin"}],"source_content_type":"text/x-gfm","patch_set":6,"id":"9ad9bd40_a72c094c","line":14,"updated":"2014-05-01 08:04:58.000000000","message":"What is this for?","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":11,"context_line":"can be provided via heat. For example:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    icinga:"},{"line_number":14,"context_line":"        admin_web_passwd: icingaadmin"},{"line_number":15,"context_line":"        nova_host_ip: 192.0.2.1"},{"line_number":16,"context_line":"        nova_os_password: unset"},{"line_number":17,"context_line":"        nova_os_username: admin"}],"source_content_type":"text/x-gfm","patch_set":6,"id":"9ad9bd40_e7b0d1df","line":14,"in_reply_to":"9ad9bd40_a72c094c","updated":"2014-05-01 09:14:57.000000000","message":"logging in to the icinga web interface as the \"default\" administration user.  Remember this is a \"first-pass\" to get us up and running, I hope to add multiple users etc. at a later date when the full icinga php ui element is developed.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":16,"context_line":"        nova_os_password: unset"},{"line_number":17,"context_line":"        nova_os_username: admin"},{"line_number":18,"context_line":"        nova_os_tenant_name: admin"},{"line_number":19,"context_line":"        initial_network_split_key: ctlplane"}],"source_content_type":"text/x-gfm","patch_set":6,"id":"9ad9bd40_2772b97c","line":19,"updated":"2014-05-01 08:04:58.000000000","message":"Whats this for ?","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":16,"context_line":"        nova_os_password: unset"},{"line_number":17,"context_line":"        nova_os_username: admin"},{"line_number":18,"context_line":"        nova_os_tenant_name: admin"},{"line_number":19,"context_line":"        initial_network_split_key: ctlplane"}],"source_content_type":"text/x-gfm","patch_set":6,"id":"9ad9bd40_27cab94f","line":19,"in_reply_to":"9ad9bd40_2772b97c","updated":"2014-05-01 09:14:57.000000000","message":"it\u0027s used by the query script to get the list of IP addresses from the nova command.\n\nI\u0027m going to try and get this working on hostnames instead, however IP Addresses will have to do for now :(","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"}],"elements/icinga-cgi/element-deps":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":2,"context_line":"os-refresh-config"},{"line_number":3,"context_line":"postfix"},{"line_number":4,"context_line":"apache2"},{"line_number":5,"context_line":"openstack-clients"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"9ad9bd40_476fbd92","line":5,"updated":"2014-05-01 08:04:58.000000000","message":"Please alpha-sort this file (see dib-lint!)","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":2,"context_line":"os-refresh-config"},{"line_number":3,"context_line":"postfix"},{"line_number":4,"context_line":"apache2"},{"line_number":5,"context_line":"openstack-clients"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"9ad9bd40_47c7bd45","line":5,"in_reply_to":"9ad9bd40_476fbd92","updated":"2014-05-01 09:14:57.000000000","message":"Done","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"ddd8165db6369fc8f173678b45c470b7bd078919","unresolved":false,"context_lines":[{"line_number":3,"context_line":"openstack-clients"},{"line_number":4,"context_line":"os-apply-config"},{"line_number":5,"context_line":"os-refresh-config"},{"line_number":6,"context_line":"postfix"}],"source_content_type":"application/octet-stream","patch_set":13,"id":"1ae5cdf2_8b3d472f","line":6,"updated":"2014-06-17 03:06:10.000000000","message":"Please alpha-sort this list.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"cc4a69f9e0f3b2d01f43d1875e66919868c86896","unresolved":false,"context_lines":[{"line_number":3,"context_line":"openstack-clients"},{"line_number":4,"context_line":"os-apply-config"},{"line_number":5,"context_line":"os-refresh-config"},{"line_number":6,"context_line":"postfix"}],"source_content_type":"application/octet-stream","patch_set":13,"id":"1ae5cdf2_6ecc848b","line":6,"in_reply_to":"1ae5cdf2_8b3d472f","updated":"2014-06-17 07:25:24.000000000","message":"Done","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"}],"elements/icinga-cgi/files/apache-icinga-cgi.conf":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"66ea028a78b7d37674b3c3544f53000a55d59d5a","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    AuthName \"Icinga Access\""},{"line_number":21,"context_line":"    AuthType Basic"},{"line_number":22,"context_line":"    AuthUserFile /etc/icinga/htpasswd.users"},{"line_number":23,"context_line":"    Require valid-user"},{"line_number":24,"context_line":"\u003c/DirectoryMatch\u003e"}],"source_content_type":"text/plain","patch_set":14,"id":"baada198_c6c86aaa","line":22,"updated":"2014-07-15 04:42:07.000000000","message":"The htpasswd file is state, and thus should be stored on /mnt/state.","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"0f28d7bcfbd42ea8cfc468d5f56703a517911036","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    AuthName \"Icinga Access\""},{"line_number":21,"context_line":"    AuthType Basic"},{"line_number":22,"context_line":"    AuthUserFile /etc/icinga/htpasswd.users"},{"line_number":23,"context_line":"    Require valid-user"},{"line_number":24,"context_line":"\u003c/DirectoryMatch\u003e"}],"source_content_type":"text/plain","patch_set":14,"id":"baada198_f13ed5d9","line":22,"in_reply_to":"baada198_c6c86aaa","updated":"2014-07-16 06:54:48.000000000","message":"Done","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"85f7d80f439b5a24798f339af7d9c218525e4032","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    AuthName \"Icinga Access\""},{"line_number":21,"context_line":"    AuthType Basic"},{"line_number":22,"context_line":"    AuthUserFile /mnt/state/etc/icinga/htpasswd.users"},{"line_number":23,"context_line":"    Require valid-user"},{"line_number":24,"context_line":"\u003c/DirectoryMatch\u003e"}],"source_content_type":"text/plain","patch_set":18,"id":"baada198_250a1cd1","line":22,"updated":"2014-08-11 14:10:33.000000000","message":"This would be better as /etc/blah, with a line in an install.d script to register-state-path --leave-symlink /etc/icinga","commit_id":"e57d568f5d168b4058886bc1f9136f0a8807e717"}],"elements/icinga-cgi/install.d/17-icinga-cgi":[{"author":{"_account_id":1605,"name":"tom-howley","email":"tom.howley@hp.com","username":"tom-howley"},"change_message_id":"1458ac95f7e447a6df2be60f81b8f263a9798e08","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"},{"line_number":7,"context_line":"sed -i \"s/check_external_commands\u003d0/check_external_commands\u003d1/\" /etc/icinga/icinga.cfg"},{"line_number":8,"context_line":"# fix a minior display issue"},{"line_number":9,"context_line":"if [ -f /etc/icinga/conf.d/extinfo_icinga.cfg ]; then"},{"line_number":10,"context_line":"  sed -i \"s/base\\/debian/debian/g\" /etc/icinga/conf.d/extinfo_icinga.cfg"},{"line_number":11,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAXH%2F%2Fzn0%3D","line":8,"updated":"2014-04-17 10:04:47.000000000","message":"typo: s/minior/minor","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"1c8c2007721ad7fd0ed5d1f4ee9596b17dd307b5","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"},{"line_number":7,"context_line":"sed -i \"s/check_external_commands\u003d0/check_external_commands\u003d1/\" /etc/icinga/icinga.cfg"},{"line_number":8,"context_line":"# fix a minior display issue"},{"line_number":9,"context_line":"if [ -f /etc/icinga/conf.d/extinfo_icinga.cfg ]; then"},{"line_number":10,"context_line":"  sed -i \"s/base\\/debian/debian/g\" /etc/icinga/conf.d/extinfo_icinga.cfg"},{"line_number":11,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAXH%2F%2Fza0%3D","line":8,"in_reply_to":"AAAAXH%2F%2Fzn0%3D","updated":"2014-04-17 10:21:25.000000000","message":"Done","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"5867d564e5c4b900512ab836305df5c0a03b4da3","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#sed -i \u00270,/ssh-servers/! s/localhost/*/\u0027 /etc/icinga/conf.d/hostgroups_icinga.cfg"},{"line_number":14,"context_line":"# some cleanup"},{"line_number":15,"context_line":"chmod g+x /var/lib/icinga/rw"},{"line_number":16,"context_line":"chmod g+x /var/lib/icinga"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"## Now icinga-cgi package is installed we need to install the configure scripts for apache"},{"line_number":19,"context_line":"# (this is shamlessly stolen from the Horizon source installation proceedures!)"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"AAAAXH%2F%2FOSI%3D","line":16,"updated":"2014-04-23 08:23:28.000000000","message":"We need to store any runtime state in /mnt/state.","commit_id":"c40696851e5f22b07759d42a9df93741ed1c0884"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"84c3531cba41d462ab611eed28cf8997318f4b99","unresolved":false,"context_lines":[{"line_number":13,"context_line":"mkdir -p /mnt/state/var/lib/icinga/rw"},{"line_number":14,"context_line":"chmod g+x /mnt/state/var/lib/icinga/rw"},{"line_number":15,"context_line":"chmod g+x /mnt/state/var/lib/icinga"},{"line_number":16,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/icinga.cfg"},{"line_number":17,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/cgi.cfg"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"## Now icinga-cgi package is installed we need to install the configure scripts for apache"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_17741ace","line":16,"updated":"2014-04-30 13:23:34.000000000","message":"sed -i \"s /var/lib /mnt/state/var/lib g\"\n\nhttp://backreference.org/2010/02/20/using-different-delimiters-in-sed/","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dda7daf0a4c468a74c7e5a4ba75c46afd0e698bb","unresolved":false,"context_lines":[{"line_number":13,"context_line":"mkdir -p /mnt/state/var/lib/icinga/rw"},{"line_number":14,"context_line":"chmod g+x /mnt/state/var/lib/icinga/rw"},{"line_number":15,"context_line":"chmod g+x /mnt/state/var/lib/icinga"},{"line_number":16,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/icinga.cfg"},{"line_number":17,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/cgi.cfg"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"## Now icinga-cgi package is installed we need to install the configure scripts for apache"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_baca739f","line":16,"in_reply_to":"9ad9bd40_17741ace","updated":"2014-04-30 13:32:27.000000000","message":"Done","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"84c3531cba41d462ab611eed28cf8997318f4b99","unresolved":false,"context_lines":[{"line_number":17,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/cgi.cfg"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"## Now icinga-cgi package is installed we need to install the configure scripts for apache"},{"line_number":20,"context_line":"# (this is shamlessly stolen from the Horizon source installation proceedures!)"},{"line_number":21,"context_line":"if [ -d /etc/httpd ]; then"},{"line_number":22,"context_line":"    install -m 0644 -o root -g root $(dirname $0)/../files/apache-icinga-cgi.conf /etc/httpd/conf.d/icinga-cgi.conf"},{"line_number":23,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_572ce2ab","line":20,"updated":"2014-04-30 13:23:34.000000000","message":"shamelessly, procedures","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dda7daf0a4c468a74c7e5a4ba75c46afd0e698bb","unresolved":false,"context_lines":[{"line_number":17,"context_line":"sed -i \"s/\\/var\\/lib/\\/mnt\\/state\\/var\\/lib/g\" /etc/icinga/cgi.cfg"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"## Now icinga-cgi package is installed we need to install the configure scripts for apache"},{"line_number":20,"context_line":"# (this is shamlessly stolen from the Horizon source installation proceedures!)"},{"line_number":21,"context_line":"if [ -d /etc/httpd ]; then"},{"line_number":22,"context_line":"    install -m 0644 -o root -g root $(dirname $0)/../files/apache-icinga-cgi.conf /etc/httpd/conf.d/icinga-cgi.conf"},{"line_number":23,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_9ad84f55","line":20,"in_reply_to":"9ad9bd40_572ce2ab","updated":"2014-04-30 13:32:27.000000000","message":"Nope, it was stolen without any Scam and with lots of ease... ;)\n\nFixing now.","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eux"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"install-packages icinga-cgi"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_0715b5f0","line":3,"updated":"2014-05-01 08:04:58.000000000","message":"please set -o pipefail","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eux"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"install-packages icinga-cgi"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_c77e6de4","line":3,"in_reply_to":"9ad9bd40_0715b5f0","updated":"2014-05-01 09:14:57.000000000","message":"Done","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":4,"context_line":"install-packages icinga-cgi"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"},{"line_number":7,"context_line":"sed -i \"s/check_external_commands\u003d0/check_external_commands\u003d1/\" /etc/icinga/icinga.cfg"},{"line_number":8,"context_line":"# fix a minor display issue"},{"line_number":9,"context_line":"if [ -f /etc/icinga/conf.d/extinfo_icinga.cfg ]; then"},{"line_number":10,"context_line":"  sed -i \"s/base\\/debian/debian/g\" /etc/icinga/conf.d/extinfo_icinga.cfg"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_e70ff1df","line":7,"updated":"2014-05-01 08:04:58.000000000","message":"i\u0027d be more comfortable with an asserted config not a mutated one - its what the vast majority of our other elements do.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"install-packages icinga-cgi"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"# set check_external_commands"},{"line_number":7,"context_line":"sed -i \"s/check_external_commands\u003d0/check_external_commands\u003d1/\" /etc/icinga/icinga.cfg"},{"line_number":8,"context_line":"# fix a minor display issue"},{"line_number":9,"context_line":"if [ -f /etc/icinga/conf.d/extinfo_icinga.cfg ]; then"},{"line_number":10,"context_line":"  sed -i \"s/base\\/debian/debian/g\" /etc/icinga/conf.d/extinfo_icinga.cfg"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_874625be","line":7,"in_reply_to":"9ad9bd40_e70ff1df","updated":"2014-05-01 09:14:57.000000000","message":"Done","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    ln -s /etc/apache2/sites-available/icinga-cgi.conf /etc/apache2/sites-enabled/icinga-cgi.conf"},{"line_number":28,"context_line":"    ln -s /var/log/apache2 /var/log/httpd"},{"line_number":29,"context_line":"    rm -f /etc/apache2/sites-enabled/{000-default.conf,default.conf,default-ssl.conf}"},{"line_number":30,"context_line":"fi"},{"line_number":31,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_6703e1b8","line":30,"updated":"2014-05-01 08:04:58.000000000","message":"We should probably factor this out in the apache element to make it more DRY.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"53d99c7ea7d455f5b26b9c089dc4f10b22e2ba1e","unresolved":false,"context_lines":[{"line_number":23,"context_line":"fi"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"a2enmod cgi"},{"line_number":26,"context_line":"service apache2 reload"}],"source_content_type":"application/x-shellscript","patch_set":10,"id":"9ad9bd40_c0e4813d","line":26,"updated":"2014-05-02 01:32:23.000000000","message":"apache2 doesn\u0027t run during install time, so just the a2enmod is all thats needed.","commit_id":"4a315c3b7a1a9bdf85f99ba6e3fbcfc65d09c3f3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"86ae696c3ee024e2086be420b34d1198e6dc2dca","unresolved":false,"context_lines":[{"line_number":23,"context_line":"fi"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"a2enmod cgi"},{"line_number":26,"context_line":"service apache2 reload"}],"source_content_type":"application/x-shellscript","patch_set":10,"id":"9ad9bd40_7ad7dd23","line":26,"in_reply_to":"9ad9bd40_c0e4813d","updated":"2014-05-02 06:47:58.000000000","message":"Done","commit_id":"4a315c3b7a1a9bdf85f99ba6e3fbcfc65d09c3f3"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"ddd8165db6369fc8f173678b45c470b7bd078919","unresolved":false,"context_lines":[{"line_number":25,"context_line":"# /run/lock doesn\u0027t exist for some reason so we need to create it here to avoid"},{"line_number":26,"context_line":"# mktemp: failed to create directory via template \u0027/var/lock/apache2.XXXXXXXXXX\u0027: No such file or directory"},{"line_number":27,"context_line":"# in the logs"},{"line_number":28,"context_line":"mkdir -p /run/lock"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"a2enmod cgi"},{"line_number":31,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"1ae5cdf2_4b341f4a","line":28,"updated":"2014-06-17 03:06:10.000000000","message":"/run isn\u0027t present (or usable in any sane way) during image builds. Is the error from a2endmod? Is it log chatter an actual error? If its an actual error, then I guess. Otherwise I think we should just ignore the chatter.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"cc4a69f9e0f3b2d01f43d1875e66919868c86896","unresolved":false,"context_lines":[{"line_number":25,"context_line":"# /run/lock doesn\u0027t exist for some reason so we need to create it here to avoid"},{"line_number":26,"context_line":"# mktemp: failed to create directory via template \u0027/var/lock/apache2.XXXXXXXXXX\u0027: No such file or directory"},{"line_number":27,"context_line":"# in the logs"},{"line_number":28,"context_line":"mkdir -p /run/lock"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"a2enmod cgi"},{"line_number":31,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"1ae5cdf2_ae9dac68","line":28,"in_reply_to":"1ae5cdf2_4b341f4a","updated":"2014-06-17 07:25:24.000000000","message":"It\u0027s an error which prevents Apache from restarting properly when we enable the mod.\n\nI guess if /run isn\u0027t present then that makes sense why I\u0027m seeing this error and as it\u0027s needed I\u0027d rather leave this in if that\u0027s ok?","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":10373,"name":"Nicholas Randon","email":"nicholas.randon@hp.com","username":"randonn"},"change_message_id":"0e15e4091ac7f9f25c4041b6fe58ee2d79a8caaa","unresolved":false,"context_lines":[{"line_number":18,"context_line":"if [ -d /etc/apache2 ]; then"},{"line_number":19,"context_line":"    install -m 0644 -o root -g root $(dirname $0)/../files/apache-icinga-cgi.conf /etc/apache2/sites-available/icinga-cgi.conf"},{"line_number":20,"context_line":"    ln -s /etc/apache2/sites-available/icinga-cgi.conf /etc/apache2/sites-enabled/icinga-cgi.conf"},{"line_number":21,"context_line":"    ln -s /var/log/apache2 /var/log/httpd"},{"line_number":22,"context_line":"    rm -f /etc/apache2/sites-enabled/{000-default.conf,default.conf,default-ssl.conf}"},{"line_number":23,"context_line":"fi"},{"line_number":24,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":16,"id":"baada198_20985975","line":21,"updated":"2014-08-11 08:11:48.000000000","message":"Please add ad guard on the symbolic link creation:\n [ ! -d /var/log/httpd ] \u0026\u0026 ln -sn /var/log/apache2 /var/log/httpd","commit_id":"77ea21df76a58cf26b112d1b253c9e1d521e642f"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"7187e77051c7b61ba255dcbe0f550592440e21e5","unresolved":false,"context_lines":[{"line_number":28,"context_line":"# /run/lock doesn\u0027t exist for some reason so we need to create it here to avoid"},{"line_number":29,"context_line":"# mktemp: failed to create directory via template \u0027/var/lock/apache2.XXXXXXXXXX\u0027: No such file or directory"},{"line_number":30,"context_line":"# in the logs"},{"line_number":31,"context_line":"mkdir -p /run/lock"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"a2enmod cgi"},{"line_number":34,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":21,"id":"fa98f980_24716a0c","line":31,"updated":"2014-09-11 22:12:57.000000000","message":"This shouldn\u0027t fix that issue - /run is a tmpfs in a running system:\n\n  tmpfs on /run type tmpfs (rw,noexec,nosuid,size\u003d10%,mode\u003d0755)\n\nIf it *does* fix it it means that apache is starting before /tmp is mounted, and that has all sorts of bad ramifications we need to address.\n\nNote that /run isn\u0027t currently available in the image *build* stage at all, because we don\u0027t run daemons. This may mean that what you\u0027re actually addressing is a limitation in a2enmod, in which case what we probably need to do is to mount a chroot local /run in dib.","commit_id":"0462880a49d9590db4b15ebbdfb19d4a389d3c06"}],"elements/icinga-cgi/os-apply-config/etc/icinga/cgi.cfg":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"ddd8165db6369fc8f173678b45c470b7bd078919","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"1ae5cdf2_0b2a17e7","updated":"2014-06-17 03:06:10.000000000","message":"Most of this file is documentation - please do what we do with the Openstack configs and shrink it the actua configuration - we don\u0027t edit these files in place so having documenation inline is pointless and just makes reviewing changes and syncing cross versions harder.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"cc4a69f9e0f3b2d01f43d1875e66919868c86896","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"1ae5cdf2_ae74cc36","in_reply_to":"1ae5cdf2_0b2a17e7","updated":"2014-06-17 07:25:24.000000000","message":"Done","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"}],"elements/icinga-cgi/os-apply-config/etc/icinga/icinga.cfg":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"ddd8165db6369fc8f173678b45c470b7bd078919","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"1ae5cdf2_6b39db40","updated":"2014-06-17 03:06:10.000000000","message":"Same here.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"cc4a69f9e0f3b2d01f43d1875e66919868c86896","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"1ae5cdf2_6e7ac426","in_reply_to":"1ae5cdf2_6b39db40","updated":"2014-06-17 07:25:24.000000000","message":"Done","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"66ea028a78b7d37674b3c3544f53000a55d59d5a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"log_file\u003d/var/log/icinga/icinga.log"},{"line_number":2,"context_line":"cfg_file\u003d/etc/icinga/commands.cfg"},{"line_number":3,"context_line":"cfg_dir\u003d/etc/nagios-plugins/config"},{"line_number":4,"context_line":"cfg_dir\u003d/etc/icinga/objects/"}],"source_content_type":"text/x-ttcn-cfg","patch_set":14,"id":"baada198_06c6e299","line":1,"updated":"2014-07-15 04:42:07.000000000","message":"Since there are no {{}} variables here, this is not a template and should just be installed in install.d.\n\nAlso, logs are state and should be on /mnt/state as well.","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"0f28d7bcfbd42ea8cfc468d5f56703a517911036","unresolved":false,"context_lines":[{"line_number":1,"context_line":"log_file\u003d/var/log/icinga/icinga.log"},{"line_number":2,"context_line":"cfg_file\u003d/etc/icinga/commands.cfg"},{"line_number":3,"context_line":"cfg_dir\u003d/etc/nagios-plugins/config"},{"line_number":4,"context_line":"cfg_dir\u003d/etc/icinga/objects/"}],"source_content_type":"text/x-ttcn-cfg","patch_set":14,"id":"baada198_31204db0","line":1,"in_reply_to":"baada198_06c6e299","updated":"2014-07-16 06:54:48.000000000","message":"Done","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"85f7d80f439b5a24798f339af7d9c218525e4032","unresolved":false,"context_lines":[{"line_number":1,"context_line":"log_file\u003d/mnt/state/var/log/icinga/icinga.log"},{"line_number":2,"context_line":"cfg_file\u003d/etc/icinga/commands.cfg"},{"line_number":3,"context_line":"cfg_dir\u003d/etc/nagios-plugins/config"},{"line_number":4,"context_line":"cfg_dir\u003d/mnt/state/etc/icinga/objects/"}],"source_content_type":"text/x-ttcn-cfg","patch_set":18,"id":"baada198_a5eb8cdb","line":1,"updated":"2014-08-11 14:10:33.000000000","message":"should be /var/log with register-state-path","commit_id":"e57d568f5d168b4058886bc1f9136f0a8807e717"}],"elements/icinga-cgi/os-apply-config/etc/icinga/nova_access_info":[{"author":{"_account_id":1605,"name":"tom-howley","email":"tom.howley@hp.com","username":"tom-howley"},"change_message_id":"1458ac95f7e447a6df2be60f81b8f263a9798e08","unresolved":false,"context_lines":[{"line_number":6,"context_line":"export COMPUTE_API_VERSION\u003d1.1"},{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"split_key\u003d{{icinga.initial_network_split_key}}"},{"line_number":10,"context_line":"icingaadmin_pass\u003d{{icinga.adm_web_passwd}}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"AAAAXH%2F%2Fzj0%3D","line":9,"updated":"2014-04-17 10:04:47.000000000","message":"Confirmation: you didn\u0027t want to export the following two variables?","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"1c8c2007721ad7fd0ed5d1f4ee9596b17dd307b5","unresolved":false,"context_lines":[{"line_number":6,"context_line":"export COMPUTE_API_VERSION\u003d1.1"},{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"split_key\u003d{{icinga.initial_network_split_key}}"},{"line_number":10,"context_line":"icingaadmin_pass\u003d{{icinga.adm_web_passwd}}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"AAAAXH%2F%2FzdM%3D","line":9,"in_reply_to":"AAAAXH%2F%2Fzj0%3D","updated":"2014-04-17 10:21:25.000000000","message":"I probably did, however the script works without them.\n\nI\u0027ll update it to export so that it\u0027s clearer.","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":1605,"name":"tom-howley","email":"tom.howley@hp.com","username":"tom-howley"},"change_message_id":"1458ac95f7e447a6df2be60f81b8f263a9798e08","unresolved":false,"context_lines":[{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"split_key\u003d{{icinga.initial_network_split_key}}"},{"line_number":10,"context_line":"icingaadmin_pass\u003d{{icinga.adm_web_passwd}}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"AAAAXH%2F%2FzlE%3D","line":10,"updated":"2014-04-17 10:04:47.000000000","message":"In general, I don\u0027t know what the agreed the best practice on this is, but I have tended to surround statements like these with:\n\n{{#icinga.nova_os_password}}\nexport OS_PASSWORD\u003d{{icinga.nova_os_password}}\n{{/icinga.nova_os_password}}\n\n{{#icinga.nova_host_ip}}\nexport OS_AUTH_URL\u003dhttp://{{icinga.nova_host_ip}}:5000/v2.0\n{{/icinga.nova_host_ip}}","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"1c8c2007721ad7fd0ed5d1f4ee9596b17dd307b5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"split_key\u003d{{icinga.initial_network_split_key}}"},{"line_number":10,"context_line":"icingaadmin_pass\u003d{{icinga.adm_web_passwd}}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"AAAAXH%2F%2FzbY%3D","line":10,"in_reply_to":"AAAAXH%2F%2FzlE%3D","updated":"2014-04-17 10:21:25.000000000","message":"This was lifted wholesale from the nagios3 server element so it may well be more appropriate to do it your way, however in this particular instance all the variables are required so excluding one if it is blank probably doesn\u0027t make much sense as at least this way nova client will complain that a given config param is missing.","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":1,"context_line":"export NOVA_VERSION\u003d1.1"},{"line_number":2,"context_line":"export OS_PASSWORD\u003d{{icinga.nova_os_password}}"},{"line_number":3,"context_line":"export OS_AUTH_URL\u003dhttp://{{icinga.nova_host_ip}}:5000/v2.0"},{"line_number":4,"context_line":"export OS_USERNAME\u003d{{icinga.nova_os_username}}"},{"line_number":5,"context_line":"export OS_TENANT_NAME\u003d{{icinga.nova_os_tenant_name}}"},{"line_number":6,"context_line":"export COMPUTE_API_VERSION\u003d1.1"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"9ad9bd40_8700e5ab","line":3,"updated":"2014-05-01 08:04:58.000000000","message":"This will break - pass the whole URL in, not the host IP.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"export split_key\u003d{{icinga.initial_network_split_key}}"},{"line_number":10,"context_line":"export icingaadmin_pass\u003d{{icinga.admin_web_passwd}}"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"9ad9bd40_a7d32937","line":10,"updated":"2014-05-01 08:04:58.000000000","message":"This seems a little weird to bundle into the nova access info file. Also - the file isn\u0027t nova specific, its all openstack api stuff - so I\u0027d like to suggest the file be split into two and renamed openstack_rc and something else for the other bit. You\u0027ll also want to chmod it to prevent local users reading it inappropriately. There are some patterns on similar files you can copy for now.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"}],"elements/icinga-cgi/os-apply-config/mnt/state/etc/icinga/htpasswd.cfg":[{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"9ee23ed692f6bfe665dadf1deaba09ff8355e15b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":19,"id":"baada198_484b7685","updated":"2014-08-12 15:25:18.000000000","message":"oops, this needs to be moved","commit_id":"e6a08a4b93073d0145ccded65c97b3a4b0ee6735"}],"elements/icinga-cgi/os-refresh-config/post-configure.d/17-icinga":[{"author":{"_account_id":1605,"name":"tom-howley","email":"tom.howley@hp.com","username":"tom-howley"},"change_message_id":"1458ac95f7e447a6df2be60f81b8f263a9798e08","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eux"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we cann\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"},{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAXH%2F%2Fzk0%3D","line":4,"updated":"2014-04-17 10:04:47.000000000","message":"typo: cann\u0027t","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"1c8c2007721ad7fd0ed5d1f4ee9596b17dd307b5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eux"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we cann\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"},{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAXH%2F%2Fza4%3D","line":4,"in_reply_to":"AAAAXH%2F%2Fzk0%3D","updated":"2014-04-17 10:21:25.000000000","message":"Done","commit_id":"8c85659b23a306d327a7514074e2f9ad75d04fcd"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"84c3531cba41d462ab611eed28cf8997318f4b99","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    echo \"setup cfg file for $node_ip.\""},{"line_number":17,"context_line":"    # TODO: make host_name \u0026 alias real names"},{"line_number":18,"context_line":"    if [ ! -f /etc/icinga/objects/$node_ip.cfg ]; then"},{"line_number":19,"context_line":"        cat \u003c\u003c _EOF_ \u003e\u003e /etc/icinga/objects/$node_ip.cfg"},{"line_number":20,"context_line":"define host{"},{"line_number":21,"context_line":"        use                     generic-host"},{"line_number":22,"context_line":"        host_name               $node_ip"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_7a4d4b72","line":19,"updated":"2014-04-30 13:23:34.000000000","message":"EOF is sufficient imo","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dda7daf0a4c468a74c7e5a4ba75c46afd0e698bb","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    echo \"setup cfg file for $node_ip.\""},{"line_number":17,"context_line":"    # TODO: make host_name \u0026 alias real names"},{"line_number":18,"context_line":"    if [ ! -f /etc/icinga/objects/$node_ip.cfg ]; then"},{"line_number":19,"context_line":"        cat \u003c\u003c _EOF_ \u003e\u003e /etc/icinga/objects/$node_ip.cfg"},{"line_number":20,"context_line":"define host{"},{"line_number":21,"context_line":"        use                     generic-host"},{"line_number":22,"context_line":"        host_name               $node_ip"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"9ad9bd40_dab017f7","line":19,"in_reply_to":"9ad9bd40_7a4d4b72","updated":"2014-04-30 13:32:27.000000000","message":"leaving as discussed.","commit_id":"f47b2cc6b940b445645aa298fcc02eb2cc0c94b8"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"},{"line_number":8,"context_line":"echo \"defaults loaded.\""},{"line_number":9,"context_line":"a2enmod cgi"},{"line_number":10,"context_line":"service apache2 restart"},{"line_number":11,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $icingaadmin_pass"},{"line_number":12,"context_line":"nova_ip_list\u003d$(nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_c7bf4dcf","line":9,"updated":"2014-05-01 08:04:58.000000000","message":"This should be done at build time.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"},{"line_number":8,"context_line":"echo \"defaults loaded.\""},{"line_number":9,"context_line":"a2enmod cgi"},{"line_number":10,"context_line":"service apache2 restart"},{"line_number":11,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $icingaadmin_pass"},{"line_number":12,"context_line":"nova_ip_list\u003d$(nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_e799b16f","line":9,"in_reply_to":"9ad9bd40_c7bf4dcf","updated":"2014-05-01 09:14:57.000000000","message":"Done","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":7,"context_line":"source $DEFAULTS"},{"line_number":8,"context_line":"echo \"defaults loaded.\""},{"line_number":9,"context_line":"a2enmod cgi"},{"line_number":10,"context_line":"service apache2 restart"},{"line_number":11,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $icingaadmin_pass"},{"line_number":12,"context_line":"nova_ip_list\u003d$(nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"},{"line_number":13,"context_line":"echo \"Found $nova_ip_list\""}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_27ce3984","line":10,"updated":"2014-05-01 08:04:58.000000000","message":"This shouldn\u0027t be here - we don\u0027t want to restart apache multiple times when both horizon and nagios (for instance) are present.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"source $DEFAULTS"},{"line_number":8,"context_line":"echo \"defaults loaded.\""},{"line_number":9,"context_line":"a2enmod cgi"},{"line_number":10,"context_line":"service apache2 restart"},{"line_number":11,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $icingaadmin_pass"},{"line_number":12,"context_line":"nova_ip_list\u003d$(nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"},{"line_number":13,"context_line":"echo \"Found $nova_ip_list\""}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_67ada188","line":10,"in_reply_to":"9ad9bd40_27ce3984","updated":"2014-05-01 09:14:57.000000000","message":"This is needed for the a2enmod part above.  As that\u0027s going, so can this.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":8,"context_line":"echo \"defaults loaded.\""},{"line_number":9,"context_line":"a2enmod cgi"},{"line_number":10,"context_line":"service apache2 restart"},{"line_number":11,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $icingaadmin_pass"},{"line_number":12,"context_line":"nova_ip_list\u003d$(nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"},{"line_number":13,"context_line":"echo \"Found $nova_ip_list\""},{"line_number":14,"context_line":"for node_ip in $nova_ip_list"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_e7b451f4","line":11,"updated":"2014-05-01 08:04:58.000000000","message":"I wonder if you can just write /etc/icinga/htpasswd.users from os-apply-config?","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"456d956053115acbce34ab01fe6feb02fce75daa","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        }"},{"line_number":26,"context_line":"_EOF_"},{"line_number":27,"context_line":"    fi"},{"line_number":28,"context_line":"done"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"service icinga restart"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_e7ab7187","line":28,"updated":"2014-05-01 08:04:58.000000000","message":"This scan-of-machines is dynamic from nova right? Its problematic cause there is nothing to retrigger it.\n\nI can imagine two ways forward\n\na) have heat supply the machines to manage (see for instance the rabbit cluster definition for an example of that approach)\nb) do this from cron regularly.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"dfa2dafa52ec871dbab8e1380f163c5d798c96f5","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        }"},{"line_number":26,"context_line":"_EOF_"},{"line_number":27,"context_line":"    fi"},{"line_number":28,"context_line":"done"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"service icinga restart"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_8773854c","line":28,"in_reply_to":"9ad9bd40_e7ab7187","updated":"2014-05-01 09:14:57.000000000","message":"actually, this shouldn\u0027t even be in here.  This is managed by the check_mk_agent element.  I\u0027ll remove it.","commit_id":"cf577ce09b362c8ce77070dcb0a4e27d2af1973e"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"ddd8165db6369fc8f173678b45c470b7bd078919","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# we\u0027re going to be using /mnt/state/var/lib/icinga"},{"line_number":5,"context_line":"# and a couple of subdirectories, so let\u0027s create them here"},{"line_number":6,"context_line":"mkdir -p /mnt/state/var/lib/icinga/{rw,spool/checkresults}"},{"line_number":7,"context_line":"chown -R nagios:nagios /mnt/state/var/lib/icinga"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"# Set the icinga web password"},{"line_number":10,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $(cat /etc/icinga/htpasswd.cfg)"}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"1ae5cdf2_2b2fd3f7","line":7,"updated":"2014-06-17 03:06:10.000000000","message":"These probably want to be done in preconfigure, not postconfigure.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"cc4a69f9e0f3b2d01f43d1875e66919868c86896","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# we\u0027re going to be using /mnt/state/var/lib/icinga"},{"line_number":5,"context_line":"# and a couple of subdirectories, so let\u0027s create them here"},{"line_number":6,"context_line":"mkdir -p /mnt/state/var/lib/icinga/{rw,spool/checkresults}"},{"line_number":7,"context_line":"chown -R nagios:nagios /mnt/state/var/lib/icinga"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"# Set the icinga web password"},{"line_number":10,"context_line":"htpasswd -bc /etc/icinga/htpasswd.users icingaadmin $(cat /etc/icinga/htpasswd.cfg)"}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"1ae5cdf2_ce711846","line":7,"in_reply_to":"1ae5cdf2_2b2fd3f7","updated":"2014-06-17 07:25:24.000000000","message":"Fair enough.","commit_id":"a9a17fb8d0283b4aa0a7de46a3f25abe66ae2ab3"}],"elements/icinga-cgi/os-refresh-config/pre-configure.d/17-icinga":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"66ea028a78b7d37674b3c3544f53000a55d59d5a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# we\u0027re going to be using /mnt/state/var/lib/icinga"},{"line_number":5,"context_line":"# and a couple of subdirectories, so let\u0027s create them here"},{"line_number":6,"context_line":"mkdir -p /mnt/state/var/lib/icinga/{rw,spool/checkresults}"},{"line_number":7,"context_line":"chown -R nagios:nagios /mnt/state/var/lib/icinga"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_e642ce0d","line":7,"updated":"2014-07-15 04:42:07.000000000","message":"This seems heavy handed. Perhaps we only mean to do that with the dirs we just created?","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"0f28d7bcfbd42ea8cfc468d5f56703a517911036","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# we\u0027re going to be using /mnt/state/var/lib/icinga"},{"line_number":5,"context_line":"# and a couple of subdirectories, so let\u0027s create them here"},{"line_number":6,"context_line":"mkdir -p /mnt/state/var/lib/icinga/{rw,spool/checkresults}"},{"line_number":7,"context_line":"chown -R nagios:nagios /mnt/state/var/lib/icinga"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_b11b7d7f","line":7,"in_reply_to":"baada198_e642ce0d","updated":"2014-07-16 06:54:48.000000000","message":"Fair comment","commit_id":"6b39610a787a928b5cc6d4d323c4253a7e3f23a0"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"85f7d80f439b5a24798f339af7d9c218525e4032","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# we\u0027re going to be using /mnt/state/var/lib/icinga"},{"line_number":5,"context_line":"# and a couple of subdirectories, so let\u0027s create them here"},{"line_number":6,"context_line":"mkdir -p /mnt/state/var/lib/icinga/{rw,spool/checkresults} /mnt/state/var/log/icinga"},{"line_number":7,"context_line":"chown -R nagios:nagios /mnt/state/var/lib/icinga/{rw,spool/checkresults} /mnt/state/var/log/icinga"}],"source_content_type":"application/x-shellscript","patch_set":18,"id":"baada198_a5c2ac51","line":7,"updated":"2014-08-11 14:10:33.000000000","message":"this is neater using `install -d`","commit_id":"e57d568f5d168b4058886bc1f9136f0a8807e717"}]}
