Changeset 1205


Ignore:
Timestamp:
12/13/06 17:47:17 (6 years ago)
Author:
mglb1
Message:

Remove CRCnet specific information from the cfservd template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccsd/private/templates/network/cfservd_conf.tmpl

    r926 r1205  
    3838        AllowUsers = ( root cfengine ) 
    3939 
    40         # Only allow connections from within the CRCnet range 
    41         AllowConnectionsFrom = ( 10.1.0.0/16 ) 
     40        # Allow configuration from any range known to the config system 
     41        # XXX: May want to tighten this in future 
     42!for %link_class_id,%link_class in %link_classes.items()         
     43        AllowConnectionsFrom = ( %link_class.netblock ) 
     44!end for 
    4245 
    43         # Trust keys from our install ranges 
    44         TrustKeysFrom = ( 10.1.18.0/24 ) 
    45         TrustKeysFrom = ( 10.1.23.0/24 ) 
    46         TrustKeysFrom = ( 10.1.224.0/24 ) 
    47         DynamicAddresses = ( 10.1.18.127-253 ) # admin DHCP 
    48         DynamicAddresses = ( 10.1.23.127-253 ) # admin DHCP 
    49         DynamicAddresses = ( 10.1.224.1-254 ) # PXE boot range 
     46        # Trust keys from our PXEboot ranges 
     47!! This is a hack, look for 'PXE' in the link description 
     48!for %link_id,%link in %links.items() 
     49    !if %link["description"].find("PXE") != -1 
     50        # %link.description 
     51        TrustKeysFrom = ( %link.network_address ) 
     52        DynamicAddresses = ( %link.network_address ) 
     53    !end if 
     54!end for 
    5055 
    5156any:: 
     
    5964grant: 
    6065 
    61         # Grant access to all hosts at crc.net.nz. 
     66        # Grant access to all hosts that we are allowing connections from 
    6267        # Files should be world readable 
    63  
    64         /var/lib/cfengine2/inputs    10.1.* 
     68!for %link_class_id,%link_class in %link_classes.items() 
     69        /var/lib/cfengine2/inputs    %link_class.netblock 
     70!end for 
    6571 
    6672########### 
Note: See TracChangeset for help on using the changeset viewer.