From fd4c5f02d3c5216b3c9997d6f8726b821bee931b Mon Sep 17 00:00:00 2001 From: Olivier Meurice Date: Thu, 12 Nov 2015 14:33:37 +0100 Subject: [PATCH] Add network configuration plugin template files for Slackware Linux --- templates/guests/slackware/network_dhcp.erb | 23 +++++++++++++++++ templates/guests/slackware/network_static.erb | 25 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 templates/guests/slackware/network_dhcp.erb create mode 100644 templates/guests/slackware/network_static.erb diff --git a/templates/guests/slackware/network_dhcp.erb b/templates/guests/slackware/network_dhcp.erb new file mode 100644 index 000000000..53f48f8c0 --- /dev/null +++ b/templates/guests/slackware/network_dhcp.erb @@ -0,0 +1,23 @@ +IPADDR[0]="" +NETMASK[0]="" +USE_DHCP[0]="yes" +DHCP_HOSTNAME[0]="" + +IPADDR[1]="" +NETMASK[1]="" +USE_DHCP[1]="yes" +DHCP_HOSTNAME[1]="" + +IPADDR[2]="" +NETMASK[2]="" +USE_DHCP[2]="" +DHCP_HOSTNAME[2]="" + +IPADDR[3]="" +NETMASK[3]="" +USE_DHCP[3]="" +DHCP_HOSTNAME[3]="" + +GATEWAY="" + +DEBUG_ETH_UP="no" diff --git a/templates/guests/slackware/network_static.erb b/templates/guests/slackware/network_static.erb new file mode 100644 index 000000000..0745e8b1a --- /dev/null +++ b/templates/guests/slackware/network_static.erb @@ -0,0 +1,25 @@ +IPADDR[0]="" +NETMASK[0]="" +USE_DHCP[0]="yes" +DHCP_HOSTNAME[0]="" + +IPADDR[1]="<%= options[:ip] %>" +NETMASK[1]="" +USE_DHCP[1]="" +DHCP_HOSTNAME[1]="" + +IPADDR[2]="" +NETMASK[2]="" +USE_DHCP[2]="" +DHCP_HOSTNAME[2]="" + +IPADDR[3]="" +NETMASK[3]="" +USE_DHCP[3]="" +DHCP_HOSTNAME[3]="" + +<% if options[:gateway] %> + GATEWAY="<%= options[:gateway] %>" +<% end %> + +DEBUG_ETH_UP="no"