Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created October 28, 2014 22:10
Show Gist options
  • Save kyleterry/feec56b6fe9a828bdfb6 to your computer and use it in GitHub Desktop.
Save kyleterry/feec56b6fe9a828bdfb6 to your computer and use it in GitHub Desktop.
$ cat chef/cookbooks/zumiez-base/recipes/resolver.rb
#
# Cookbook Name:: zumiez-base
# Recipe:: resolver
#
template "/etc/resolvconf/resolv.conf.d/base" do
source "resolver/base.erb"
owner "root"
group "root"
mode 0644
variables node[:zumiez][:resolver]
end
execute "/sbin/resolvconf -u" do
action :nothing
subscribes :run, "template[/etc/resolvconf/resolv.conf.d/base]", :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment