- From: Peter Donald <
>
- To:
- Subject: [chef] Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404
- Date: Thu, 26 Apr 2012 10:00:36 +1000
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
- [chef] Re: Re: Re: Re: search returns error, (continued)
- [chef] Re: Re: Re: Re: search returns error, kallen, 04/09/2012
- [chef] Re: Re: Re: Re: Re: search returns error, Paul Welch, 04/09/2012
- [chef] recurring bad perms on /var/log/chef, chef-solr returns 404, kallen, 04/09/2012
- [chef] Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Peter Donald, 04/09/2012
- [chef] Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Shawn Catz, 04/25/2012
- [chef] Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Shawn, 04/25/2012
- [chef] Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Shawn, 04/25/2012
- [chef] Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Peter Donald, 04/25/2012
- [chef] Re: Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Tim Smith, 04/26/2012
- [chef] Re: Re: Re: Re: recurring bad perms on /var/log/chef, chef-solr returns 404, Peter Donald, 04/26/2012
Archive powered by MHonArc 2.6.16.