*** schrd_ has joined #openstack-chef | 03:41 | |
*** schrd has quit IRC | 03:45 | |
*** schrd_ is now known as schrd | 03:45 | |
openstackgerrit | weizj proposed openstack/cookbook-openstack-client master: Change openstack-dev to openstack-discuss https://review.openstack.org/622803 | 07:39 |
---|---|---|
*** asidorenko has quit IRC | 14:30 | |
openstackgerrit | Merged openstack/cookbook-openstack-client master: Change openstack-dev to openstack-discuss https://review.openstack.org/622803 | 14:53 |
*** asidorenko has joined #openstack-chef | 18:43 | |
asidorenko | https://github.com/openstack/cookbook-openstack-identity/blob/d139297cf905d6eca5638baf52a37db1da24509d/recipes/server-apache.rb#L311-L317 | 18:43 |
asidorenko | I have some issues with this hack, apache gets restarted during each chef run :-D | 18:43 |
asidorenko | Without to dive deep in, would it be a solution to have the both notifications in the each apache related resource within this recipe? | 18:44 |
asidorenko | or at least within web_app and apache_site | 18:45 |
asidorenko | https://github.com/openstack/cookbook-openstack-identity/blob/d139297cf905d6eca5638baf52a37db1da24509d/recipes/server-apache.rb#L319-L323 | 19:04 |
asidorenko | I think this is also obsolete, chef manages selinux labels by itself. Not? | 19:04 |
scas | the apache2 cookbook has received updates, so we might be able to refactor some of that out | 19:27 |
scas | as far as selinux goes, that execute block is pretty old. i'm happy to review and help test any changes you propose to gerrit | 19:29 |
asidorenko | I still have issues to get to the CCLA within my org, the guy who was responsible for it left the company. And due to upcoming holiday period there is no real hope to get this point addressed, so it will time some time :( | 20:46 |
asidorenko | but I'm currently testing the ideas via delete_resource/edit_resource ways, once I get the CCLA question resovled, I'll push it upstream | 20:47 |
asidorenko | btw, funny thing, you can't use edit_resource for custom resources (e.g. web_app from apache2), as custom resources are completely expanded in the run_context during the compile phase | 20:49 |
asidorenko | even with_run_context can't help here | 20:49 |
asidorenko | but a hack like | 20:49 |
asidorenko | ruby_block 'reload apache immediately' do | 20:49 |
asidorenko | block { true } | 20:49 |
asidorenko | action :nothing | 20:49 |
asidorenko | subscribes :run, 'web_app[identity]', :immediately | 20:49 |
asidorenko | notifies :restart, 'service[apache2]', :immediately | 20:49 |
asidorenko | end | 20:49 |
asidorenko | works wonderfull | 20:49 |
asidorenko | nope, it doesn't work either. But its also doesn't raise an error.... | 20:56 |
scas | cool. i've been more focused on the mariadb portion of things, since it needs its own fair share of work | 21:16 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!