Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Let's try out running chef-client as a daemon
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 20, 2014
1 parent 218b912 commit 118da9e
Showing 3 changed files with 12 additions and 13 deletions.
9 changes: 6 additions & 3 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -72,6 +72,9 @@ GRAPH
bluepill (2.3.1)
rsyslog (>= 0.0.0)
build-essential (2.0.2)
chef-client (3.6.0)
cron (>= 1.2.0)
logrotate (>= 1.2.0)
chef-sugar (2.0.0)
chef-vault (1.1.2)
chef_handler (1.1.6)
@@ -82,6 +85,7 @@ GRAPH
git (>= 0.0.0)
collectd_plugins (1.0.0)
collectd (>= 0.0.0)
cron (1.4.0)
database (2.2.0)
aws (>= 0.0.0)
mysql (>= 5.0.0)
@@ -110,7 +114,6 @@ GRAPH
hostsfile (>= 0.0.0)
hostsfile (2.4.4)
iptables (0.13.2)
line (0.5.1)
logrotate (1.6.0)
memcached (1.7.2)
runit (~> 1.0)
@@ -183,8 +186,8 @@ GRAPH
rubygems-cache (0.0.1)
memcached (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-chef (0.0.3)
line (>= 0.0.0)
rubygems-chef (0.0.5)
chef-client (>= 0.0.0)
rubygems-database (0.0.20)
database (>= 0.0.0)
postgresql (>= 0.0.0)
4 changes: 2 additions & 2 deletions cookbooks/rubygems-chef/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name 'rubygems-chef'
maintainer 'RubyGems.org ops team'

version '0.0.3'
version '0.0.5'

depends 'line'
depends 'chef-client'

supports 'ubuntu'
12 changes: 4 additions & 8 deletions cookbooks/rubygems-chef/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -4,13 +4,9 @@
#

cron 'chef-client' do
minute '*/30'
hour '*'
user 'root'
command '/usr/bin/chef-client'
action :delete
end

append_if_no_line 'enable ssl verification when talking to the server' do
path '/etc/chef/client.rb'
line 'ssl_verify_mode :verify_peer'
end
node.default['chef_client']['config'] = { 'ssl_verify_mode' => ':verify_peer' }

include_recipe 'chef-client'

0 comments on commit 118da9e

Please sign in to comment.