)]}'
{"manifests/init.pp":[{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"7276e2d097a58063b003e65b4de59566e591a2e8","unresolved":false,"context_lines":[{"line_number":376,"context_line":"  if $::operatingsystem !\u003d Debian or ! $::os_package_type or $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"},{"line_number":380,"context_line":"      require     \u003d\u003e [Package[\u0027python-lesscpy\u0027], Package[\u0027horizon\u0027]],"},{"line_number":381,"context_line":"    }"},{"line_number":382,"context_line":"  }"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"fa80f949_6d488e5c","line":379,"updated":"2015-11-03 14:37:48.000000000","message":"I guess, will be better to use onlyif parameter for checking Debian:\n\nhttps://docs.puppetlabs.com/references/latest/type.html#exec-attribute-onlyif","commit_id":"8cf1db18198e4b66b2489e9775544ba5417e8338"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"9da3b886ad3dbdaab078c304768f8ca187dc3aa2","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::op_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":4,"id":"fa80f949_4aa530b3","line":376,"updated":"2015-11-04 20:45:26.000000000","message":"os_package_type","commit_id":"064614e029df673e471e466e8e03d8a2901dda1e"},{"author":{"_account_id":6476,"name":"Thomas Goirand","email":"thomas@goirand.fr","username":"thomas-goirand"},"change_message_id":"6a902ab732457f52c57efcc0d4335c52bf3c1ce1","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::op_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":4,"id":"fa80f949_85822993","line":376,"in_reply_to":"fa80f949_4aa530b3","updated":"2015-11-04 21:02:45.000000000","message":"Done","commit_id":"064614e029df673e471e466e8e03d8a2901dda1e"},{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"9727af7238c028ab7b101695708b68e23e42fa4f","unresolved":false,"context_lines":[{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"},{"line_number":380,"context_line":"      require     \u003d\u003e [Package[\u0027python-lesscpy\u0027], Package[\u0027horizon\u0027]],"},{"line_number":381,"context_line":"    }"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"fa80f949_09f2c46f","line":378,"updated":"2015-11-05 09:37:36.000000000","message":"What if we completely remove this exec from Puppet? As I know, all Horizon packages (Ubuntu, Debian debs and rpms) execute compressing on a postinst step, isn\u0027t it enough or sometimes it should be re-executed due to changes in local_settings.py?","commit_id":"94f1b592f3c6284a310199309919325752222883"},{"author":{"_account_id":6476,"name":"Thomas Goirand","email":"thomas@goirand.fr","username":"thomas-goirand"},"change_message_id":"a10687ac6fd832da6b996fbe562b6c800d8f79f5","unresolved":false,"context_lines":[{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"},{"line_number":380,"context_line":"      require     \u003d\u003e [Package[\u0027python-lesscpy\u0027], Package[\u0027horizon\u0027]],"},{"line_number":381,"context_line":"    }"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"fa80f949_8d00f602","line":378,"in_reply_to":"fa80f949_09f2c46f","updated":"2015-11-05 13:13:36.000000000","message":"Well, the collectstatic should IMO be only handled by packages (if they wish to use that). But it is sometimes needed to call compress. For example, if you change the theme, or if you change the WEBROOT directive in local_settings.py, then you need to run compress again.\n\nRemoving collecstatic completely for os_package_type not being Debian isn\u0027t my decision, so I am not proposing it, and I prefer to have this patch being more incremental, so that the collecstatic or compress thing can be discussed separately.","commit_id":"94f1b592f3c6284a310199309919325752222883"},{"author":{"_account_id":7423,"name":"Cody Herriges","email":"cody@herriges.org","username":"ody"},"change_message_id":"6ccbd34fd26eb931e11948e896f89ee2c08a1e2a","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_191a0b6f","line":376,"updated":"2015-11-17 21:22:35.000000000","message":"Denis\u0027s recommendation seems idea but I\u0027d add that the longic from setting something like \"$run_collectstatic\" should be pushed into params.pp.","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"},{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"32aa7e58a248cfb482779e4d2b458a65ed74b510","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_571aec18","line":376,"updated":"2015-11-16 16:10:01.000000000","message":"What\u0027s about another OS? May be will be better create a new parameter like $run_collectstatic, which will be false by default?","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"d9f50128879010c994a9eb9c24a5655aecf84a5e","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_d993234e","line":376,"in_reply_to":"ba8a016a_191a0b6f","updated":"2015-11-17 21:35:35.000000000","message":"Technically, this should be probably be updating the compress_offline flag to be default false for debian. Since this is a refreshonly exec, it only is triggered when compress_offline is true below (~L384)","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"cf049cfe7b3876ebd4232cb4ee6cfd923f23c6d0","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    ensure  \u003d\u003e $package_ensure,"},{"line_number":374,"context_line":"  }"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  if $::os_package_type !\u003d \u0027debian\u0027 {"},{"line_number":377,"context_line":"    exec { \u0027refresh_horizon_django_cache\u0027:"},{"line_number":378,"context_line":"      command     \u003d\u003e \"${::horizon::params::manage_py} collectstatic --noinput --clear \u0026\u0026 ${::horizon::params::manage_py} compress --force\","},{"line_number":379,"context_line":"      refreshonly \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_0e972049","line":376,"in_reply_to":"ba8a016a_d993234e","updated":"2015-11-17 22:21:30.000000000","message":"Actually in researching where this code came from it was actually a workaround for Debian. See I813b5f6067bb6ecce279cab7278d9227c4d31d28. Since that has been fixed, I\u0027ve updated this patch to only do these items for RedHat packages as Debian/Ubuntu are done in the packaging.","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"}],"manifests/params.pp":[{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"f5c88e226c5d5e1422ce9dd5f83eec40e78926d9","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        }"},{"line_number":37,"context_line":"        default: {"},{"line_number":38,"context_line":"            # This handles the case of installing the Debian package on top of Ubuntu"},{"line_number":39,"context_line":"            if $::os_package_type \u003d\u003d \u0027debian\u0027 {"},{"line_number":40,"context_line":"              $package_name          \u003d \u0027openstack-dashboard-apache\u0027"},{"line_number":41,"context_line":"              $httpd_config_file     \u003d \u0027/etc/apache2/conf-available/openstack-dashboard-alias-only.conf\u0027"},{"line_number":42,"context_line":"            } else {"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"fa80f949_ed86be12","line":39,"updated":"2015-11-03 14:43:37.000000000","message":"we should check this variable in openstacklib - it will add ability to manage current operatingsystem (override) in one module, instead of all.","commit_id":"8cf1db18198e4b66b2489e9775544ba5417e8338"},{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"96e0ea2fff651a1b0e3786b534885bd7661bfd3f","unresolved":false,"context_lines":[{"line_number":29,"context_line":"      $apache_group                \u003d \u0027www-data\u0027"},{"line_number":30,"context_line":"      $wsgi_user                   \u003d \u0027horizon\u0027"},{"line_number":31,"context_line":"      $wsgi_group                  \u003d \u0027horizon\u0027"},{"line_number":32,"context_line":"      case $::os_package_type {"},{"line_number":33,"context_line":"        \u0027debian\u0027: {"},{"line_number":34,"context_line":"            $package_name          \u003d \u0027openstack-dashboard-apache\u0027"},{"line_number":35,"context_line":"            $httpd_config_file     \u003d \u0027/etc/apache2/sites-available/openstack-dashboard-alias-only.conf\u0027"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_c6a4fb09","line":32,"updated":"2015-11-16 13:32:02.000000000","message":"in case of using native debian, without your fact, we will get wrong package_name and httpd_config_file.","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"},{"author":{"_account_id":6476,"name":"Thomas Goirand","email":"thomas@goirand.fr","username":"thomas-goirand"},"change_message_id":"c6de9dda283b8e10287cbd1ce088e272e6daaa15","unresolved":false,"context_lines":[{"line_number":29,"context_line":"      $apache_group                \u003d \u0027www-data\u0027"},{"line_number":30,"context_line":"      $wsgi_user                   \u003d \u0027horizon\u0027"},{"line_number":31,"context_line":"      $wsgi_group                  \u003d \u0027horizon\u0027"},{"line_number":32,"context_line":"      case $::os_package_type {"},{"line_number":33,"context_line":"        \u0027debian\u0027: {"},{"line_number":34,"context_line":"            $package_name          \u003d \u0027openstack-dashboard-apache\u0027"},{"line_number":35,"context_line":"            $httpd_config_file     \u003d \u0027/etc/apache2/sites-available/openstack-dashboard-alias-only.conf\u0027"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_dc34c34b","line":32,"in_reply_to":"ba8a016a_c6a4fb09","updated":"2015-11-16 16:01:11.000000000","message":"Thanks to this: https://review.openstack.org/241615 it\u0027s going to be ok.","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"},{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"32aa7e58a248cfb482779e4d2b458a65ed74b510","unresolved":false,"context_lines":[{"line_number":29,"context_line":"      $apache_group                \u003d \u0027www-data\u0027"},{"line_number":30,"context_line":"      $wsgi_user                   \u003d \u0027horizon\u0027"},{"line_number":31,"context_line":"      $wsgi_group                  \u003d \u0027horizon\u0027"},{"line_number":32,"context_line":"      case $::os_package_type {"},{"line_number":33,"context_line":"        \u0027debian\u0027: {"},{"line_number":34,"context_line":"            $package_name          \u003d \u0027openstack-dashboard-apache\u0027"},{"line_number":35,"context_line":"            $httpd_config_file     \u003d \u0027/etc/apache2/sites-available/openstack-dashboard-alias-only.conf\u0027"}],"source_content_type":"text/x-puppet","patch_set":6,"id":"ba8a016a_f7452017","line":32,"in_reply_to":"ba8a016a_dc34c34b","updated":"2015-11-16 16:10:01.000000000","message":"Yep, sorry","commit_id":"7239fd7dfa288d2f964e917d3921316eb7a8ba8d"}]}
