Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- begin
- eth0ip = Resolv::DNS.new.getaddress("@facts['fqdn']")
- rescue
- raise "Resolv::ResolvError: DNS result has no information for #{@facts['fqdn']}"
- end
- %>
- DEVICE=eth0
- ONBOOT=yes
- TYPE=ethernet
- BOOTPROTO=static
- NETMASK=255.255.255.0
- IPADDR=<%= eth0ip %>
Add Comment
Please, Sign In to add comment