Permalink
Browse files

quick task for pushing out resolv.conf

  • Loading branch information...
1 parent 1ead150 commit f887b721913119d64f0d049168713a2e4c43bf0e @mbailey mbailey committed Nov 30, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/deprec/recipes/network.rb
@@ -86,6 +86,16 @@
sudo '/etc/init.d/networking restart'
end
+ desc "Push out resolv.conf"
+ task :resolv do
+ FILE = {
+ :template => "resolv.conf.erb",
+ :path => '/etc/resolv.conf',
+ :mode => 0644,
+ :owner => 'root:root'}
+ deprec2.render_template(:network, FILE.merge(:remote=>true))
+ end
+
end
end

0 comments on commit f887b72

Please sign in to comment.