package 'foo' fo action :install end template '/etc/foo' do notifies :restart, 'service[foo]' end # this will be started, then restarted on the first chef-client run service 'foo' do action :start end