Skip to content

Instantly share code, notes, and snippets.

#
# Tasks to keep your repository in sync with your Chef Server
#
# Author:: Matthew Kent (<[email protected]>)
# Copyright:: Copyright (c) 2010 Matthew Kent
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
ruby_block "reload config" do
block do
Chef::Config.from_file("/etc/chef/client.rb")
end
action :nothing
end
template "/etc/chef/client.rb" do
...
notifies :run, resources(:ruby_block => "reload config")