[chef] Re: Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404


Chronological Thread 
  • From: Tim Smith < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404
  • Date: Thu, 26 Apr 2012 16:31:59 +0000
  • Accept-language: en-US

I've always been a bit confused on how that recipe fix would actually
behave in real life.  If your chef server fails in any way, then comes
back up, and chef fails to start how is chef client going to run in order
to fix the permissions?  Am I missing a step here?



On 4/25/12 5:00 PM, "Peter Donald" 
< >
 wrote:

>On Thu, Apr 26, 2012 at 9:04 AM, Shawn Catz 
>< >
>wrote:
>>> I believe it is actually the lograte script that is causing the
>>> problem - I think it may be something you need to edit in
>>> /etc/logrotate.d/chef-solr but I don't have access to the config at
>>> the moment. For a long time I just ran a cron script that enforced the
>>> correct permissions and bounced the solr server when necessary
>>>
>>
>> Heyas,
>>
>> I ran into the same problem, it looks like it's the
>> "chef-client::config" recipe that's doing it... I haven't
>> figured out why it would do that ...
>>
>> found this:
>> %w{run_path cache_path backup_path log_dir}.each do |key|
>>  directory node['chef_client'][key] do
>>    recursive true
>>    owner "root"
>>    group root_group
>>    mode 0755
>>  end
>> end
>>
>> Running Chef 0.10.8
>
>I believe if you update to the chef-client cookbook version 1.1.5 it
>should be fixed. (This also assumes that you have a recipe by the name
>"chef-server" running on the server). Mine looks something like
>
>  directory node['chef_client'][key] do
>    recursive true
>    if node.recipe?("chef-server")
>      owner "chef"
>      group "chef"
>    else
>      owner "root"
>     group root_group
>    end
>    mode 0755
>  end
>
>-- 
>Cheers,
>
>Peter Donald




Archive powered by MHonArc 2.6.16.

§