From d05b5f04c92034eae1675dc8102247a3cc3315f7 Mon Sep 17 00:00:00 2001 From: baigk Date: Tue, 4 Aug 2015 22:21:43 -0400 Subject: delete the windows newline character JIRA: COMPASS-7 Change-Id: Iffd549877b8cc50a995bdc59adf1f05c0fcb1d5e Signed-off-by: baigk --- deploy/adapters/cobbler/snippets/networking.xml | 262 ++++++++++++------------ 1 file changed, 131 insertions(+), 131 deletions(-) (limited to 'deploy/adapters/cobbler/snippets/networking.xml') diff --git a/deploy/adapters/cobbler/snippets/networking.xml b/deploy/adapters/cobbler/snippets/networking.xml index a468ab47..c9428a48 100644 --- a/deploy/adapters/cobbler/snippets/networking.xml +++ b/deploy/adapters/cobbler/snippets/networking.xml @@ -1,131 +1,131 @@ -#set $hostname = $getVar("hostname","") -#if $hostname == "" -#set $hostname = $getVar("system_name","cobbler") -#end if -#if $getVar("dns_name_eth0","") != "" - #set $my_hostname = $hostname.split('.',1)[:1][0] - #set $my_domainname = $dns_name_eth0.split('.',1)[1:][0] -#else - #set $my_hostname = $hostname - #set $my_domainname = "site" -#end if - - - false - - - - - - false - false - false - - $my_hostname - $my_domainname - #if $getVar("name_servers_search","") != "" - - #for $sd in $name_servers_search - $sd - #end for - - #end if - - #for $ns in $name_servers - $ns - #end for - - - - #if $getVar("system_name","") != "" - #set $ikeys = $interfaces.keys() - #for $iface in $ikeys - #set $idata = $interfaces[$iface] - #set $mac = $idata["mac_address"] - #set $ip = $idata["ip_address"] - #set $netmask = $idata["netmask"] - #set $iface_type = $idata["interface_type"] - #set $bonding_opts = $idata["bonding_opts"] - #if $iface_type.lower() == "bond" - - yes - $bonding_opts.lower() - #set $loop_ikeys = $interfaces.keys() - #set $loop_counter = 0 - #for $loop_iface in $loop_ikeys - #set $loop_idata = $interfaces[$loop_iface] - #set $loop_interface_type = $loop_idata["interface_type"] - #if $loop_interface_type.lower == "bond_slave" - #if $loop_idata["interface_master"] != "" - #if $loop_idata["interface_master"].lower() == $iface.lower() - $loop_iface - #set $loop_counter += 1 - #end if - #end if - #end if - #end for - static - $iface - $ip - $netmask - auto - no - - #end if - #if $iface_type.lower() in ["bond_slave","bridge_slave"] - - none - $iface - off - no - - #end if - #if $iface_type.lower() in ["","na"] - - static - $iface - $mac.lower() - $ip - $netmask - auto - no - - #end if - #end for - #end if - - false - - #if $getVar("system_name","") != "" - #set $ikeys = $interfaces.keys() - #for $iface in $ikeys - #set $idata = $interfaces[$iface] - #set $mac = $idata["mac_address"] - #set $interface_type = $idata["interface_type"] - #if $mac.lower() != "" - #if $interface_type.lower() not in ["bond","bridge"] - - $iface - ATTR{address} - $mac.lower() - - #end if - #end if - #end for - #end if - - - false - #if $getVar("system_name","") != "" - ## TODO: add in static routes here - - - default - - - - - $gateway - - - #end if - - +#set $hostname = $getVar("hostname","") +#if $hostname == "" +#set $hostname = $getVar("system_name","cobbler") +#end if +#if $getVar("dns_name_eth0","") != "" + #set $my_hostname = $hostname.split('.',1)[:1][0] + #set $my_domainname = $dns_name_eth0.split('.',1)[1:][0] +#else + #set $my_hostname = $hostname + #set $my_domainname = "site" +#end if + + + false + + + + + + false + false + false + + $my_hostname + $my_domainname + #if $getVar("name_servers_search","") != "" + + #for $sd in $name_servers_search + $sd + #end for + + #end if + + #for $ns in $name_servers + $ns + #end for + + + + #if $getVar("system_name","") != "" + #set $ikeys = $interfaces.keys() + #for $iface in $ikeys + #set $idata = $interfaces[$iface] + #set $mac = $idata["mac_address"] + #set $ip = $idata["ip_address"] + #set $netmask = $idata["netmask"] + #set $iface_type = $idata["interface_type"] + #set $bonding_opts = $idata["bonding_opts"] + #if $iface_type.lower() == "bond" + + yes + $bonding_opts.lower() + #set $loop_ikeys = $interfaces.keys() + #set $loop_counter = 0 + #for $loop_iface in $loop_ikeys + #set $loop_idata = $interfaces[$loop_iface] + #set $loop_interface_type = $loop_idata["interface_type"] + #if $loop_interface_type.lower == "bond_slave" + #if $loop_idata["interface_master"] != "" + #if $loop_idata["interface_master"].lower() == $iface.lower() + $loop_iface + #set $loop_counter += 1 + #end if + #end if + #end if + #end for + static + $iface + $ip + $netmask + auto + no + + #end if + #if $iface_type.lower() in ["bond_slave","bridge_slave"] + + none + $iface + off + no + + #end if + #if $iface_type.lower() in ["","na"] + + static + $iface + $mac.lower() + $ip + $netmask + auto + no + + #end if + #end for + #end if + + false + + #if $getVar("system_name","") != "" + #set $ikeys = $interfaces.keys() + #for $iface in $ikeys + #set $idata = $interfaces[$iface] + #set $mac = $idata["mac_address"] + #set $interface_type = $idata["interface_type"] + #if $mac.lower() != "" + #if $interface_type.lower() not in ["bond","bridge"] + + $iface + ATTR{address} + $mac.lower() + + #end if + #end if + #end for + #end if + + + false + #if $getVar("system_name","") != "" + ## TODO: add in static routes here + + + default + - + - + $gateway + + + #end if + + -- cgit 1.2.3-korg