HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-05-23 3efcc890568f1b217208248bc8d9caa198190879
do not create interfaces for managed server pacs
2 files modified
7 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/Pac.java 5 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/interfaces.vm 2 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -292,4 +292,9 @@
        String basepacName = getBasepac().getName();
        return PAC_DW.equals(basepacName) || PAC_WEB.equals(basepacName);
    }
    public boolean isManagedServer() {
        String basepacName = getBasepac().getName();
        return PAC_SRV.equals(basepacName);
    }
}
hsarback/src/de/hsadmin/mods/pac/interfaces.vm
@@ -13,10 +13,12 @@
        gateway ${hive.defaultGateway}
#foreach( $pac in ${hive.pacs} )
#if( !${pac.managedServer} )
iface eth0:${pac.name} inet static
        address ${pac.curINetAddr.inetAddr}
        netmask 255.255.255.0
#end
#end