)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"ed439c850e684ac35cb340e5c0284ce4ee75719d","unresolved":false,"context_lines":[{"line_number":10,"context_line":"This is usefull in case you use \"devuser\" element and want to ssh guest"},{"line_number":11,"context_line":"image."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"* element depend on cloud-init been installed."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I00e38aa2753f26b4cdd34d0fd85fc8e0de78171f"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba5da102_c8ecf091","line":13,"updated":"2016-10-31 20:31:26.000000000","message":"So we try not to have hidden dependencies like this\n\nThere is a cloud-init element you can depend on\n\nthere seems to be some precedent for this with cloud-init-disable-resizefs but i would not like to follow it\n\ni think we have to be very careful about become a very very bad ansible/puppet\n\nif anything, i\u0027d think this would be a flag to the existing cloud-init element to modify the config in there.  i don\u0027t see we want a whole element to do this","commit_id":"a920618dfad898ea48159fb4d413dd0010249e63"}],"elements/base/README.rst":[{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"08135aadf7986ae047fde4d63573601c6da4bbf2","unresolved":false,"context_lines":[{"line_number":23,"context_line":"The `DIB_CLOUD_INIT_ALLOW_PASS_AUTH` environment variable can be used to"},{"line_number":24,"context_line":"customize cloud-init to allow ssh password authentication"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":" * if the variable is set to something, will set cloud-init config "},{"line_number":27,"context_line":"   file \\\"/etc/cloud/cloud.cfg\\\" paramter \\\"ssh_pwauth\\\" True."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":" * if the variable is set to empty or not set do nothing."}],"source_content_type":"text/x-rst","patch_set":6,"id":"ba5da102_c06ec795","line":26,"range":{"start_line":26,"start_character":66,"end_line":26,"end_character":67},"updated":"2016-11-06 13:42:23.000000000","message":"whitespace","commit_id":"ca94182250a460d1e9616ef4e4114b76367b0450"}],"elements/cloud-init/README.rst":[{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"c55edf076af5d8c801408d3e1b63b55b05905407","unresolved":false,"context_lines":[{"line_number":13,"context_line":"DIB_CLOUD_INIT_ALLOW_PASS_AUTH"},{"line_number":14,"context_line":"  :Required: No"},{"line_number":15,"context_line":"  :Default: password authentication disabled when cloud-init installed"},{"line_number":16,"context_line":"  :Description: customize cloud-init to allow console and ssh password"},{"line_number":17,"context_line":"    authentication."}],"source_content_type":"text/x-rst","patch_set":17,"id":"7a77a97e_32c82ea8","line":16,"updated":"2016-11-17 22:55:26.000000000","message":"i hate to be really picky here ... BUT i will be :)\n\nThis doesn\u0027t really have anything to do with console login?  devuser sets the password in /etc/passwd and you can log in via vnc (or a physical console, if you had one of those old outdated things i guess :)  I have done it many times when debugging network issues with hosts.\n\nI\u0027m happy with this here to allow password-based ssh login if that\u0027s what people want.  But I\u0027d like to avoid confusion by not saying it\u0027s setting up console login","commit_id":"1fae703b575cabccb392a13e3ed81fc2736f6e2a"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"9fa8779db26d087f6b1214572fbe90022491f3d5","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"DIB_CLOUD_INIT_ALLOW_PASS_AUTH"},{"line_number":14,"context_line":"  :Required: No"},{"line_number":15,"context_line":"  :Default: password authentication disabled when cloud-init installed"},{"line_number":16,"context_line":"  :Description: customize cloud-init to allow user password"},{"line_number":17,"context_line":"    authentication."}],"source_content_type":"text/x-rst","patch_set":18,"id":"7a77a97e_5d037d0f","line":15,"updated":"2016-11-22 08:03:56.000000000","message":"this should make it clear it\u0027s talking about ssh authorization","commit_id":"7d7899eaf0ff66dec918411cceb59ef1ab6bc716"}],"elements/cloud-init/post-install.d/21-cloud-init-allow-password-auth":[{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"b24e74cb9a590df00fbf0471960117d51ac09838","unresolved":false,"context_lines":[{"line_number":14,"context_line":"            sudo sh -c \u0027echo \"ssh_pwauth: 1\" \u003e\u003e /etc/cloud/cloud.cfg\u0027"},{"line_number":15,"context_line":"        else"},{"line_number":16,"context_line":"            echo \"ssh_pwauth exist. make sure ssh_pwauth enabled\""},{"line_number":17,"context_line":"            sed -i -e \u0027s/ssh_pwauth:   0/ssh_pwauth:   1/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":18,"context_line":"            sed -i -e \u0027s/ssh_pwauth: False/ssh_pwauth: True/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":19,"context_line":"            sed -i -e \u0027s/ssh_pwauth: false/ssh_pwauth: true/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":20,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":16,"id":"7a77a97e_37c92727","line":17,"range":{"start_line":17,"start_character":25,"end_line":17,"end_character":40},"updated":"2016-11-17 09:08:27.000000000","message":"This only works for patterns having 3 spaces. For the below it may not work:\nssh_pwauth:0\nssh_pwauth: 0\nssh_pwauth:  0\nso i\u0027d suggest to change it to:\nsed -i -e \u0027s/ssh_pwauth: *0/ssh_pwauth: 1/g\u0027 /etc/cloud/cloud.cfg\nPlease note 1 space above after ssh_pwauth.","commit_id":"55deb6dd8bdc472a62038375dc06394af50d3cd4"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"b24e74cb9a590df00fbf0471960117d51ac09838","unresolved":false,"context_lines":[{"line_number":15,"context_line":"        else"},{"line_number":16,"context_line":"            echo \"ssh_pwauth exist. make sure ssh_pwauth enabled\""},{"line_number":17,"context_line":"            sed -i -e \u0027s/ssh_pwauth:   0/ssh_pwauth:   1/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":18,"context_line":"            sed -i -e \u0027s/ssh_pwauth: False/ssh_pwauth: True/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":19,"context_line":"            sed -i -e \u0027s/ssh_pwauth: false/ssh_pwauth: true/g\u0027 /etc/cloud/cloud.cfg"},{"line_number":20,"context_line":"        fi"},{"line_number":21,"context_line":"    fi"},{"line_number":22,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":16,"id":"7a77a97e_37f04767","line":19,"range":{"start_line":18,"start_character":12,"end_line":19,"end_character":83},"updated":"2016-11-17 09:08:27.000000000","message":"Ditto as above.","commit_id":"55deb6dd8bdc472a62038375dc06394af50d3cd4"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"9fa8779db26d087f6b1214572fbe90022491f3d5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"set -o pipefail"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"# Set cloud-init to allow password authentication"},{"line_number":10,"context_line":"if [ -n \"${DIB_CLOUD_INIT_ALLOW_PASS_AUTH:-}\" ]; then"},{"line_number":11,"context_line":"    if [ -f \"/etc/cloud/cloud.cfg\" ]; then"},{"line_number":12,"context_line":"        if [ -z \"$(cat /etc/cloud/cloud.cfg | grep ssh_pwauth)\" ]; then"},{"line_number":13,"context_line":"            echo \"ssh_pwauth not exist. append to EOF\""}],"source_content_type":"application/x-shellscript","patch_set":18,"id":"7a77a97e_9d1c3579","line":10,"updated":"2016-11-22 08:03:56.000000000","message":"sorry to keep coming back to this, but this should be\n\n  DIB_CLOUD_INIT_ALLOW_SSH_PWAUTH\n\nto make it clear it\u0027s ssh","commit_id":"7d7899eaf0ff66dec918411cceb59ef1ab6bc716"}]}
