Exemplo n.º 1
0
def main(argv):
    # Parse arguments
    #parser = argparse.ArgumentParser()
    #parser.add_argument('--verbose', help='increase output verbosity',
    #                    action='store_true')
    #parser.add_argument('srv', nargs='?', help='server',
    #                    action='store_true')
    #args = parser.parse_args()

    # Clone the config repository
#    call(['sh', 'clone.sh'])

    # Create structures
    #fb = FileBuilder()
    #iterator = ConfIterator()

    # Initialize structures
    #fb.set_out_path('out/etc/')
    #iterator.set_input_path('conf/srv/')

    # Do stuff
    srv = ServerSetup()
    
    #srv.set_in_path('conf/srv/etc/')
    
    
    #srv.set_in_path('conf/srv/')
    #srv.set_conf_prefix('conf/srv/etc/dhcpd.conf')
    #srv.set_prefix_path('conf/srv/')
    
    #srv.set_in_path('conf/')
    #srv.set_out_path('out/')
    srv.isc_dhcpd_setup()
    srv.named_keys_setup()
    srv.named_setup()
    srv.ntp_setup()
    srv.nfs_setup()
    srv.openldap_setup()
    srv.samba_setup()
    srv.squid_setup()
Exemplo n.º 2
0
#from __future__ import print_function
from tester import *
print sys.path
from ccinfra.model.model import ServerSetup

#import PIL
#import PIL.Image

# Make sure we have the binary extension
srv = ServerSetup()
srv.set_in_path('conf/')
srv.set_out_path('out/')
srv.isc_dhcpd_setup()


#assert PIL.Image.VERSION[:3] == '1.1'
#
## Create an image and do stuff with it.
#assert (im.mode, im.size) == ('1', (100, 100))
#assert len(im.tobytes()) == 1300
#
## Create images in all remaining major modes.
#im = PIL.Image.new("P", (100, 100))
#im = PIL.Image.new("RGB", (100, 100))
#im = PIL.Image.new("I", (100, 100))
#im = PIL.Image.new("F", (100, 100))

print("ok")