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

Commit

Permalink
Run chef via cron and stop/disable the service
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 24, 2014
1 parent f93b33b commit 9c63540
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ GRAPH
rubygems-cache (0.0.1)
memcached (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-chef (0.0.7)
rubygems-chef (0.0.8)
chef-client (>= 0.0.0)
omnibus_updater (>= 0.0.0)
rubygems-database (0.0.22)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-chef/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name 'rubygems-chef'
maintainer 'RubyGems.org ops team'

version '0.0.7'
version '0.0.8'

depends 'chef-client'
depends 'omnibus_updater'
6 changes: 5 additions & 1 deletion cookbooks/rubygems-chef/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -11,7 +11,11 @@
node.default['chef_client']['config']['client_fork'] = true

include_recipe 'chef-client::config'
include_recipe 'chef-client'
include_recipe 'chef-client::cron'

service 'chef-client' do
action [ :stop, :disable ]
end

node.default['omnibus_updater']['version'] = '11.12.8'
node.default['omnibus_updater']['restart_chef_service'] = true

0 comments on commit 9c63540

Please sign in to comment.