Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 483 Bytes
dep 'dnsmasq', :dns_domain, :dns_server_ip do
requires 'dnsmasq.managed'
dns_domain.ask("The network's domain").default('example.org')
dns_server_ip.ask("The DNS server itself").default('10.0.1.1')
def dnsmasq_conf
"/etc/dnsmasq.conf".p
end
met? { Babushka::Renderable.new(dnsmasq_conf).from?(dependency.load_path.parent / "dnsmasq/dnsmasq.conf.erb") }
meet { render_erb "dnsmasq/dnsmasq.conf.erb", :to => dnsmasq_conf, :sudo => true }
end
dep 'dnsmasq.managed'