)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"48c7fb5f477c6d0bc81cabb47dc4687cf31094ca","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Disable PrivateDevices for Galera on CentOS 7"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds the `galera_disable_privatedevices` variable that"},{"line_number":10,"context_line":"allows deployers to disable PrivateDevices in MariaDB\u0027s systemd"},{"line_number":11,"context_line":"unit file on CentOS 7 systems. This is a workaround to fix the"},{"line_number":12,"context_line":"systemd/LXC issues with bind mounting an already bind mounted"},{"line_number":13,"context_line":"`/dev/ptmx` inside the LXC container."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"7f231b9d_c6051213","line":10,"updated":"2017-06-14 13:26:02.000000000","message":"MariaDB 10.1","commit_id":"4b6191045f6200acaeec3b29ac8450e64f9cd6b8"}],"defaults/main.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"0b916d5b9398537b31bb52d9a49545e14cc8a659","unresolved":false,"context_lines":[{"line_number":153,"context_line":"# Should be set to either public VIP of VIP FQDN, depending on what is currently used in the env."},{"line_number":154,"context_line":"galera_ssl_address: \"{{ ansible_host }}\""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"# MariaDB 10.2 ships with \u0027PrivateDevices\u003dTrue\u0027 in the systemd unit file. This"},{"line_number":157,"context_line":"# provides some additional security, but it causes problems with creating"},{"line_number":158,"context_line":"# mount namespaces on CentOS 7 with systemd 219. While the security"},{"line_number":159,"context_line":"# enhancements are helpful on bare metal hosts with multiple services running,"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7f231b9d_1c4b60b0","line":156,"range":{"start_line":156,"start_character":10,"end_line":156,"end_character":14},"updated":"2017-06-14 13:16:23.000000000","message":"I think it\u0027s 10.1 onwards. We\u0027re hitting the issue with 10.1.","commit_id":"464ff684f76f345548074ca7c65f0f84eec05cb9"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"2bac7d9e483f76eda79f50450052c8d3442f6116","unresolved":false,"context_lines":[{"line_number":167,"context_line":"#"},{"line_number":168,"context_line":"# Setting the following variable to \u0027yes\u0027 will disable the PrivateDevices"},{"line_number":169,"context_line":"# setting in the systemd unit file for MariaDB on CentOS 7 hosts."},{"line_number":170,"context_line":"galera_disable_privatedevices: yes"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"7f231b9d_9c49b08c","line":170,"range":{"start_line":170,"start_character":31,"end_line":170,"end_character":34},"updated":"2017-06-14 13:21:15.000000000","message":"Set the default to \u0027no\u0027 in case this role is used outside of our framework - we don\u0027t want a default insecure posture.","commit_id":"464ff684f76f345548074ca7c65f0f84eec05cb9"}],"tasks/galera_post_install.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ddfe90e4f3840ddf53696e415b25ab19c4fc3b54","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    - galera-config"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"- name: Drop PrivateDevices systemd options when in container"},{"line_number":116,"context_line":"  file:"},{"line_number":117,"context_line":"    path: \"/etc/systemd/system/mariadb.service.d/without-caps.conf\""},{"line_number":118,"context_line":"    content: |"},{"line_number":119,"context_line":"      [Service]"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"7f231b9d_a2f102d0","line":116,"updated":"2017-06-13 16:52:58.000000000","message":"lineinfile or block in file with create.\n\nOr copy.","commit_id":"00fdf74303540d103257950037ac2d387b5172db"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b990d7de20af956fa4e8528c631a8591835a3546","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    - galera-config"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"- name: Drop PrivateDevices systemd options when in container"},{"line_number":116,"context_line":"  copy:"},{"line_number":117,"context_line":"    path: \"/etc/systemd/system/mariadb.service.d/without-caps.conf\""},{"line_number":118,"context_line":"    content: |"},{"line_number":119,"context_line":"      [Service]"},{"line_number":120,"context_line":"      PrivateDevices\u003dfalse"},{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - \"ansible_pkg_mgr \u003d\u003d \u0027yum\u0027\""},{"line_number":123,"context_line":"    - \"ansible_service_mgr \u003d\u003d \u0027systemd\u0027\""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"7f231b9d_41db2f1a","line":120,"range":{"start_line":116,"start_character":0,"end_line":120,"end_character":26},"updated":"2017-06-14 12:46:10.000000000","message":"Instead of dropping a new file, why don\u0027t we rather just use a lineinfile removal from the mysql service unit?","commit_id":"f38a08e3a1fdce622bdba88b6846d2da09fe55a4"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"e855df22fa420a1aaa6e6612566445c46a46fc61","unresolved":false,"context_lines":[{"line_number":117,"context_line":"    path: \"/etc/systemd/system/mariadb.service.d/without-caps.conf\""},{"line_number":118,"context_line":"    content: |"},{"line_number":119,"context_line":"      [Service]"},{"line_number":120,"context_line":"      PrivateDevices\u003dfalse"},{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - \"ansible_pkg_mgr \u003d\u003d \u0027yum\u0027\""},{"line_number":123,"context_line":"    - \"ansible_service_mgr \u003d\u003d \u0027systemd\u0027\""}],"source_content_type":"text/x-yaml","patch_set":5,"id":"7f231b9d_012c1700","line":120,"in_reply_to":"7f231b9d_41db2f1a","updated":"2017-06-14 12:47:14.000000000","message":"Adding a new file is preferred over messing with the vendor-provided systemd service file.","commit_id":"f38a08e3a1fdce622bdba88b6846d2da09fe55a4"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b990d7de20af956fa4e8528c631a8591835a3546","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - \"ansible_pkg_mgr \u003d\u003d \u0027yum\u0027\""},{"line_number":123,"context_line":"    - \"ansible_service_mgr \u003d\u003d \u0027systemd\u0027\""},{"line_number":124,"context_line":"    - \"not (is_metal | default(properties.is_metal)) | bool\""},{"line_number":125,"context_line":"  notify:"},{"line_number":126,"context_line":"    - Reload the systemd daemon"},{"line_number":127,"context_line":"    - Restart mysql"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"7f231b9d_21c1532f","line":124,"range":{"start_line":124,"start_character":0,"end_line":124,"end_character":60},"updated":"2017-06-14 12:46:10.000000000","message":"We try hard not to expose the is_metal var here. Can you define a new default var to enable/disable this, then we can set it in group_vars from the integrated repo and in the test vars for this repo.","commit_id":"f38a08e3a1fdce622bdba88b6846d2da09fe55a4"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"bacc7cfbbbada214f4e4a3092878716566b3b183","unresolved":false,"context_lines":[{"line_number":116,"context_line":"# links to relevant bugs and discussion."},{"line_number":117,"context_line":"- name: Remove PrivateDevices systemd options when in container"},{"line_number":118,"context_line":"  copy:"},{"line_number":119,"context_line":"    path: \"/etc/systemd/system/mariadb.service.d/without-caps.conf\""},{"line_number":120,"context_line":"    content: |"},{"line_number":121,"context_line":"      [Service]"},{"line_number":122,"context_line":"      PrivateDevices\u003dfalse"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f231b9d_c69bd215","line":119,"range":{"start_line":119,"start_character":4,"end_line":119,"end_character":8},"updated":"2017-06-14 13:48:29.000000000","message":"This needs to be \u0027dest\u0027.","commit_id":"4b6191045f6200acaeec3b29ac8450e64f9cd6b8"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"48c7fb5f477c6d0bc81cabb47dc4687cf31094ca","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    path: \"/etc/systemd/system/mariadb.service.d/without-caps.conf\""},{"line_number":120,"context_line":"    content: |"},{"line_number":121,"context_line":"      [Service]"},{"line_number":122,"context_line":"      PrivateDevices\u003dfalse"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - ansible_pkg_mgr \u003d\u003d \u0027yum\u0027"},{"line_number":125,"context_line":"    - ansible_service_mgr \u003d\u003d \u0027systemd\u0027"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f231b9d_2633a6f8","line":122,"range":{"start_line":122,"start_character":21,"end_line":122,"end_character":26},"updated":"2017-06-14 13:26:02.000000000","message":"{{ galera_disable_privatedevices | bool | ternary(\u0027false\u0027,\u0027true\u0027)\n\nWould make sure that in any case, this is set, for example if a deployer changes values.","commit_id":"4b6191045f6200acaeec3b29ac8450e64f9cd6b8"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"48c7fb5f477c6d0bc81cabb47dc4687cf31094ca","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - ansible_pkg_mgr \u003d\u003d \u0027yum\u0027"},{"line_number":125,"context_line":"    - ansible_service_mgr \u003d\u003d \u0027systemd\u0027"},{"line_number":126,"context_line":"    - galera_disable_privatedevices | bool"},{"line_number":127,"context_line":"  notify:"},{"line_number":128,"context_line":"    - Reload the systemd daemon"},{"line_number":129,"context_line":"    - Restart mysql"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f231b9d_0630aae7","line":126,"updated":"2017-06-14 13:26:02.000000000","message":"In that case, you\u0027d have to remove this condition","commit_id":"4b6191045f6200acaeec3b29ac8450e64f9cd6b8"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8221e358478ac65b1a0a9d83574f83ca44d31d8c","unresolved":false,"context_lines":[{"line_number":116,"context_line":"# links to relevant bugs and discussion."},{"line_number":117,"context_line":"- name: Remove PrivateDevices systemd options when in container"},{"line_number":118,"context_line":"  template:"},{"line_number":119,"context_line":"    src: without-privatedevices.conf.j2"},{"line_number":120,"context_line":"    dest: \"/etc/systemd/system/mariadb.service.d/without-privatedevices.conf\""},{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - ansible_pkg_mgr \u003d\u003d \u0027yum\u0027"}],"source_content_type":"text/x-yaml","patch_set":10,"id":"7f231b9d_e6bfee5e","line":119,"updated":"2017-06-14 13:49:05.000000000","message":"either use content, or add the template!","commit_id":"fa0d633243eae827ba2f71bde359e0508b549c94"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"521df09df99bedac8fec91d28333ca2d535a3d72","unresolved":false,"context_lines":[{"line_number":117,"context_line":"- name: Remove PrivateDevices systemd options when in container"},{"line_number":118,"context_line":"  template:"},{"line_number":119,"context_line":"    src: without-privatedevices.conf.j2"},{"line_number":120,"context_line":"    dest: \"/etc/systemd/system/mariadb.service.d/without-privatedevices.conf\""},{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - ansible_pkg_mgr \u003d\u003d \u0027yum\u0027"},{"line_number":123,"context_line":"    - ansible_service_mgr \u003d\u003d \u0027systemd\u0027"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"7f231b9d_4920f548","line":120,"updated":"2017-06-14 14:06:55.000000000","message":"well if we think it could happen under ubuntu as well, we can remove the \"yum\" condition, and combine with the previous task","commit_id":"f46e1525069299297eec1df704607848dd7a7b2f"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"da9cd9890f3cd1f5f8800497f3d5c52c517f0c07","unresolved":false,"context_lines":[{"line_number":117,"context_line":"- name: Remove PrivateDevices systemd options when in container"},{"line_number":118,"context_line":"  template:"},{"line_number":119,"context_line":"    src: without-privatedevices.conf.j2"},{"line_number":120,"context_line":"    dest: \"/etc/systemd/system/mariadb.service.d/without-privatedevices.conf\""},{"line_number":121,"context_line":"  when:"},{"line_number":122,"context_line":"    - ansible_pkg_mgr \u003d\u003d \u0027yum\u0027"},{"line_number":123,"context_line":"    - ansible_service_mgr \u003d\u003d \u0027systemd\u0027"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"7f231b9d_ec610fab","line":120,"in_reply_to":"7f231b9d_4920f548","updated":"2017-06-14 14:35:09.000000000","message":"I would rather we only applied it to platforms that need it because this reduces the security posture.","commit_id":"f46e1525069299297eec1df704607848dd7a7b2f"}]}
