@@ -0,0 +1,761 @@
+%0A# Import python modules%0Aimport os%0Aimport socket%0A# Import third party libs%0Aimport yaml%0A%0Adef minion_config(path):%0A    '''%0A    Reads in the minion configuration file and sets up special options%0A    '''%0A    opts = %7B'master': 'mcp',%0A            'master_port': '7777',%0A            'pki_dir': '/etc/salt/pki',%0A            'hostname': socket.getfqdn(),%0A            %7D%0A%0A    if os.path.isfile(path):%0A        opts.update(yaml.load(open(conf, 'r')))%0A%0A    opts%5B'master_uri'%5D = 'tcp://' + opts%5B'master'%5D + ':' + opts%5B'master_port'%5D%0A%0A    return opts%0A%0Adef master_config(path):%0A    '''%0A    Reads in the master configuration file and sets up default options%0A    '''%0A    opts = %7B%7D%0A%0A    if os.path.isfile(path):%0A        opts.update(yaml.load(open(conf, 'r')))%0A    %0A    return opts%0A

set up configuration reading