Changeset 6339


Ignore:
Timestamp:
Oct 5, 2008, 10:27:59 PM (17 years ago)
Author:
RIck van der Zwet
Message:
  • Fixed all templates to match to the more logical naming 'standard' and added a

number of comments on various places to explain for externals about certain WL
choices

  • Revived TODO to match the more accurate status again
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/TODO

    r6311 r6339  
    1 ** Showstoppers
    2 -> Document database layout and choices
    3         @rick, I think this todo van be closed, because exodusmodels.dot is available
    4 
    5 * Input fields validation
    6 * Conversion Genesis -> Exodus
    7 * Exodus, support Genesis output
    81* Add check that a domain has a dnsserver if not, named.conf generation gets broken
    92* Add reverse lookup fields for named.conf
    103* Fix dhcpd.conf template
    114* Add ssh_keys
     5* Modular handing/edit/add/delete of Location/DNS/Networks, without using the
     6  'admin' interface, but have some table look alike code instead
    127
    13 * remove hardcoding in wllogic.py for 172.17 and higher as master ip
    14 * Interface cleanups:
    15 ** option to edit/delete fields
    16 ** allignment input fields
    17 ** combine input fields where possible and link
    188** Interlink add code
    199        ->desc
    20         ->remove hardcoding of 172.16 in freeinterlink ip code
    2110        ->Check if link is possible, ie. master can have multiple interlinks, managed can only have 1
    22         ->generate SSID
    2311        ->Put correct modes on NIC
    24         ->Check that: freeinterlinkip() works going from 17.16.0.255 to 172.16.1.0
    2512        ->Check if 1 has an omni, omni needs to be master
    26        
    27 
    28 * Think:
    29 ** class Interlink return self.iface1 or self.iface1.node
    3013
    3114* Genesis compatibility
  • TabularUnified trunk/exodus/templates/freebsd-5.0/dhcpd.conf

    r6325 r6339  
    33#
    44# Generated on {% now "G:i j-n-Y" %}
    5 # by {{ object.host }}
     5# by {{ node.host }}
    66#
    7 # Node: {{ object.name }}
     7# Node: {{ node.name }}
    88# File: rc.local
    99
    10 option domain-name "{{ object.network.domainname }}";
    1110
    1211default-lease-time 7200;
     
    1514ddns-update-style none;
    1615
    17 option domain-name-servers {{ object.masterip }};
     16option domain-name "{{ node.network }}";
    1817
    19 {{object.interface.all}}
    20 
    21 {% for nic in object.interface_set.all %}
     18{% for nic in node.interface_set.all %}
    2219        {% for omni in nic.omni.all %}
    2320# {{ omni.desc }}
     
    2724        option broadcast-address {% broadcast omni.ip omni.netmask %};
    2825        option subnet-mask {{ omni.netmask|subnet }};
     26        option domain-name-servers {{ omni.ip }};
    2927} {% endfor %}
     28
    3029# {{ nic.desc }}
    3130subnet {% network nic.ip nic.netmask %} netmask {{ nic.netmask|subnet }} { not authoritative; }
  • TabularUnified trunk/exodus/templates/freebsd-5.0/named.conf

    r6325 r6339  
    22#
    33# Generated on {% now "G:i j-n-Y" %}
    4 # by {{ object.host }}
     4# by {{ node.host }}
    55#
    6 # Node: {{ object.name }}
     6# Node: {{ node.name }}
    77# File: named.conf
    88
     
    1111        pid-file "/var/run/named.pid";
    1212        forwarders {
    13         {% for server in object.network.dnsserver_set.all %}
     13        {% for server in node.network.dnsserver_set.all %}
    1414        {{server.ipaddress }}; {% endfor %}
    1515        };
     
    3232};
    3333
    34 {% for domain in object.domains %}
     34{#XXX: Needs some rethinking on how to allow this to be called again #}
     35{% for domain in node.domains %}
    3536
    3637zone "{{domain.domainname}}" {
  • TabularUnified trunk/exodus/templates/freebsd-5.0/rc.local

    r6325 r6339  
    11# The file is WirelessLeiden specific. Please make all changes in exodus
    22#
    3 # Generated on {% now "G:i j-n-Y" %} 
    4 # by {{ object.host }}
     3# Generated on {% now "G:i j-n-Y" %}
     4# by {{ node.host }}
    55#
    6 # Node: {{ object.name }}
     6# Node: {{ node.name }}
    77# File: rc.local
    88
    9 {% for nic in object %}
     9{% for nic in node.interface_set.all %}
    1010{% if nic.ssid %}
    1111/usr/sbin/wicontrol -i {{ nic.iface }} -s {{ nic.shortdesc }} # Nickname
  • TabularUnified trunk/exodus/templates/freebsd-5.0/rc.node.local

    r6325 r6339  
    22#
    33# Generated on {% now "G:i j-n-Y" %}
    4 # by {{ object.host }}
     4# by {{ node.host }}
    55#
    6 # Node: {{ object.name }}
    7 # File: rc.local
     6# Node: {{ node.name }}
     7# File: rc.node.local
    88
    9 {% for nic in object %}
    10 {% if nic.ssid %}
    11 /usr/sbin/wicontrol -i {{ nic.iface }} -s {{ nic.shortdesc }} # Nickname
    12 /usr/sbin/wicontrol -i {{ nic.iface }} -P 0  # PowerSave
    13 /usr/sbin/wicontrol -i {{ nic.iface }} -Z    # Zero SNR cache
    14 /usr/sbin/wicontrol -i {{ nic.iface }} -p {{ nic.wifimode }}  # {{ nic.wifidesc }}
    15 /usr/sbin/wicontrol -i {{ nic.iface }} -c 1  # broadcasting essid on
    16 /usr/sbin/wicontrol -i {{ nic.iface }} -n {{ nic.ssid }} # network name
    17 /usr/sbin/wicontrol -i {{ nic.iface }} -q {{ nic.ssid }} # ESSID
    18 /usr/sbin/wicontrol -i {{ nic.iface }} -f {{ nic.channel }} # Channel
    19 {% endif %}
     9hostname="{{ node.name }}.{{ node.network }}"
     10location="{{ node.location }} - {{ node.location.desc }}"
    2011
    21 ifconfig {{nic.iface}} {{nic.ip}}/{{nic.netmask}}
     12# Dirty hack for use by WL proxy
     13ifconfig_lo0_alias0="172.31.255.1/32"
     14# Allow masterip to be linked to lo0 interface to keep it reachable all the time
     15ifconfig_lo0_alias1="{{ node.masterip }}/32"
     16
     17{% for nic in node.interface_set.all %}
     18ifconfig_{{ nic.iface }}="inet {{nic.ip}}/{{nic.netmask}}"
    2219{% endfor %}
    2320
  • TabularUnified trunk/exodus/templates/freebsd-5.0/resolv.conf

    r6325 r6339  
    33#
    44# Generated on {% now "G:i j-n-Y" %}
    5 # by {{ object.host }}
     5# by {{ node.host }}
    66#
    7 # Node: {{ object.name }}
     7# Node: {{ node.name }}
    88# File: resolv.conf
    99
    1010nameserver 127.0.0.1 #localhost
    1111{% spaceless %}
    12 {% for interface in object.interface_set.all %}
     12{% for interface in node.interface_set.all %}
    1313        {% for interlink in interface.interface_set.all %}
    1414                {% ifnotequal interlink interface %}
Note: See TracChangeset for help on using the changeset viewer.